-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
98 lines (74 loc) · 2.35 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
CC = g++
CPP = g++
CXX = g++
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
EXTRA_DIST=rom autogen.sh Doxyfile.in README.md
CLEANFILES = caprice32.conf
etcdir = $(sysconfdir)/@PACKAGE@
etc_DATA = caprice32.conf
do_subst = sed -e 's,[@]sharedstatedir[@],$(sharedstatedir),g' \
-e 's,[@]localstatedir[@],$(localstatedir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]mandir[@],$(mandir),g' \
-e 's,[@]PERL[@],$(PERL),g' \
-e 's,[@]CC[@],$(CC),g' \
-e 's,[@]CXX[@],$(CXX),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g'
caprice32.conf: caprice32.conf.in Makefile
$(do_subst) < $(srcdir)/caprice32.conf.in > caprice32.conf
docdir = $(datarootdir)/doc/@PACKAGE@
doc_DATA = README AUTHORS INSTALL NEWS LICENSE ChangeLog
# install the man page
man_MANS=man/caprice32.1
all-local:
@echo "=== all-local done ==="
clean-local: clean-doc
@echo "=== clean-local done ==="
distclean-local: distclean-doc
@echo "=== distclean-local done ==="
install-data-local: all-doc install-doc
@echo "=== install-data-local done ==="
uninstall-local: uninstall-doc
@echo "=== uninstall-local done ==="
if HAVE_DOXYGEN
all-doc:
$(DOXYGEN) Doxyfile
clean-doc:
rm -rf $(top_builddir)/doc
distclean-doc:
rm -rf $(top_builddir)/doc
install-doc:
$(mkdir_p) $(DESTDIR)$(docdir)
cp -rf doc/html $(DESTDIR)$(docdir)
uninstall-doc:
-rm -rf $(DESTDIR)$(docdir)/html
-rmdir $(DESTDIR)$(docdir)
else
all-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be built ***";
clean-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be cleaned ***";
distclean-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be cleaned ***";
install-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be installed ***";
uninstall-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be uninstalled ***";
endif
install-data-hook:
@echo "Installing <<@PACKAGE@>> data files ..."; \
mkdir -pv $(prefix)/share/@PACKAGE@; \
cp -rvf rom $(prefix)/share/@PACKAGE@/; \
echo ""; \
echo "<<@PACKAGE@>> has ben installed on <<$(prefix)>> directory!"; \
echo "You can execute <<caprice32>> now!"; \
echo "";