1 # title generic make targets
2 # file make/Targets.make
4 .PHONY : all clean config default dist doc doc++ exe help html lib TAGS\
13 # be careful about deletion.
20 $(MAKE) local-distclean
24 $(MAKE) local-maintainerclean
25 $(MAKE) local-distclean
27 include $(stepdir)/Po.make
41 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
42 Usage: $(MAKE) ["VARIABLE=value"]... [TARGET]\n\
46 help: generic-help local-help
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\
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\
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\
69 TAGS genarate tagfiles\n\
70 zip build binary doze distribution\n\
72 Make may be invoked from any subdirectory\n\
73 Note that all commands recurse into SUBSDIRS\n\
80 # $(MAKE) -C $(depth)/Documentation do-doc
81 $(MAKE) -C $(depth)/Documentation all
86 (cd $(outdir); sh ../$(step-bindir)/tar-docxx.sh $(package)-$(TOPLEVEL_VERSION).tar.gz)
91 if [ "`tail -1 $(state-vector)`" != "$(TOPLEVEL_VERSION)" ]; then\
92 echo $(TOPLEVEL_VERSION) >> $(state-vector); \
96 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
97 mkdir $(distdir)/$(localdir)
98 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
100 #UGH UGH . make ifdef doesn't mix with string substitution semantics (late expansion vs. early expansion)
102 if [ "$(NON_ESSENTIAL_DIST_FILES)x" != "x" ] ; then \
103 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir); \
106 if [ "$(OUT_DIST_FILES)x" != "x" ] ; then \
107 mkdir $(distdir)/$(localdir)/out; \
108 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out; \
110 $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
117 -if [ "$(TAGS_FILES)" != "" ]; then \
118 etags -CT $(TAGS_FILES) || \
119 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
124 $(outdir)/version.hh: VERSION
125 sh ./$(step-bindir)/make-version.sh > $@
128 # should this be in Rules?
129 configure: configure.in aclocal.m4
137 local-maintainerclean:
140 $(MAKE) INSTALL="$(INSTALL) -s" install
142 install: localinstall
147 uninstall: localuninstall
153 -$(INSTALL) -d $(prefix)/doc/$(package)
154 $(foreach i, $(EXTRA_DOC_FILES),\
155 cp -r $(i) $(prefix)/doc/$(package) &&) true
160 include $(stepdir)/Package.make
161 include $(make-dir)/Targets.make
163 include $(outdir)/dummy.dep $(DEP_FILES)
167 touch $(outdir)/dummy.dep