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