]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/Generic_targets.make
release: 1.0.3
[lilypond.git] / stepmake / stepmake / Generic_targets.make
1 # title    generic make targets
2 # file     make/Targets.make
3
4 .PHONY : all clean config default dist doc doc++  exe help html lib TAGS\
5          po
6
7 # target all:
8 #
9 all:     default
10         $(LOOP)
11
12
13 # be careful about deletion.
14 clean: localclean
15         -rm -f $(outdir)/*
16         $(LOOP)
17
18 distclean: clean 
19         $(LOOP)
20         $(MAKE) local-distclean
21
22 maintainerclean: 
23         $(LOOP)
24         $(MAKE) local-maintainerclean
25         $(MAKE) local-distclean
26
27 include $(stepdir)/Po.make
28
29
30 # configure:
31 #
32 config:
33         ./$(depth)/configure
34 #
35
36
37 # target help:
38 #
39 generic-help:
40         @echo -e "\
41 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
42 Usage: $(MAKE) ["VARIABLE=value"]... [TARGET]\n\
43 \n\
44 Targets:\n"
45
46 help: generic-help local-help
47         @echo -e "\
48   all         update everything\n\
49   clean       remove all genated stuff in $(oudir)\n\
50   config      rerun configure\n\
51   deb         build Debian package\n\
52   default     same as the empty target\n\
53   diff        generate patch: $(package)-$(TOPLEVEL_VERSION).diff.gz\n\
54   .           Options:\n\
55   .             from=0.1.74\n\
56   .             help==\n\
57   .             release==\n\
58   .             to=0.1.74.jcn2\n\
59   distclean   cleaner than clean (duh)\n\
60   doc         update all documentation\n\
61   doc++       make doc++ documentation\n\
62   exe         update all executables\n\
63   help        this help\n\
64   install     install programs and data (prefix=$(prefix))\n\
65   lib         update all libraries\n\
66   release     roll tarball and generate patch\n\
67   rpm         build RedHat package\n\
68   tar         same as dist\n\
69   TAGS        genarate tagfiles\n\
70   zip         build binary doze distribution\n\
71 \n\
72 Make may be invoked from any subdirectory\n\
73 Note that all commands recurse into SUBSDIRS\n\
74 "\
75 #
76
77 local-help:
78
79 doc:
80 #       $(MAKE) -C $(depth)/Documentation do-doc
81         $(MAKE) -C $(depth)/Documentation all
82
83
84 # Ugh.  C++ specific.
85 doc++:
86         (cd $(outdir); sh ../$(step-bindir)/tar-docxx.sh $(package)-$(TOPLEVEL_VERSION).tar.gz)
87
88
89
90 check-state-vector:
91         if [ "`tail -1 $(state-vector)`" != "$(TOPLEVEL_VERSION)" ]; then\
92           echo $(TOPLEVEL_VERSION) >> $(state-vector); \
93         fi
94
95
96 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
97         mkdir $(distdir)/$(localdir)
98         $(LN) $(DIST_FILES) $(distdir)/$(localdir)
99
100 #UGH UGH . make ifdef doesn't mix with string substitution semantics (late expansion vs. early expansion)
101
102         if [ "$(NON_ESSENTIAL_DIST_FILES)x" != "x" ] ; then \
103                 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir); \
104         fi
105
106         if [ "$(OUT_DIST_FILES)x" != "x" ] ; then \
107                 mkdir $(distdir)/$(localdir)/out; \
108                 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out; \
109         fi
110         $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
111
112
113
114 html: $(HTML_FILES)
115
116 TAGS:
117         -if [ "$(TAGS_FILES)" != "" ]; then \
118                 etags -CT $(TAGS_FILES) || \
119                 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
120         fi
121
122         $(LOOP)
123
124 $(outdir)/version.hh: VERSION
125         sh ./$(step-bindir)/make-version.sh > $@
126
127
128 # should this be in Rules?
129 configure: configure.in aclocal.m4
130         autoconf - < $<> $@
131         chmod +x configure
132
133 localclean:
134
135 local-distclean:
136
137 local-maintainerclean:
138
139 install-strip:
140         $(MAKE) INSTALL="$(INSTALL) -s" install
141
142 install: localinstall
143         $(LOOP)
144
145 localinstall:
146
147 uninstall: localuninstall
148         $(LOOP)
149
150 localuninstall:
151
152 installextradoc:
153         -$(INSTALL) -d $(prefix)/doc/$(package)
154         $(foreach i, $(EXTRA_DOC_FILES),\
155                 cp -r $(i) $(prefix)/doc/$(package) &&) true
156
157 WWW: local-WWW
158         $(LOOP)
159
160 include $(stepdir)/Package.make
161 include $(make-dir)/Targets.make
162
163 include $(outdir)/dummy.dep $(DEP_FILES)
164
165 $(outdir)/dummy.dep:
166         -mkdir $(outdir)
167         touch $(outdir)/dummy.dep
168
169
170 check: local-check
171         $(LOOP)
172
173 local-check: