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
39 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
40 Usage: $(MAKE) ["VARIABLE=value"]... [TARGET]\n\
44 help: generic-help local-help
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\
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\
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\
67 TAGS genarate tagfiles\n\
68 zip build binary doze distribution\n\
70 Make may be invoked from any subdirectory\n\
71 Note that all commands recurse into SUBSDIRS\n\
79 true # $(MAKE) -C $(depth)/Documentation all
84 (cd $(outdir); sh ../$(step-bindir)/tar-docxx.sh $(package)-$(TOPLEVEL_VERSION).tar.gz)
88 ifneq ($(strip $(state-vector)),)
89 if [ "`tail -1 $(state-vector)`" != "$(TOPLEVEL_VERSION)" ]; then\
90 echo $(TOPLEVEL_VERSION) >> $(state-vector); \
94 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
95 mkdir -p $(distdir)/$(localdir)
96 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
98 #UGH UGH . make ifdef doesn't mix with string substitution semantics (late expansion vs. early expansion)
100 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
101 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
104 case "$(OUT_DIST_FILES)x" in x) ;; *) \
105 mkdir $(distdir)/$(localdir)/out; \
106 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
108 $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
115 -if [ "$(TAGS_FILES)" != "" ]; then \
116 etags -CT $(TAGS_FILES) || \
117 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
122 $(outdir)/version.hh: VERSION
123 sh ./$(step-bindir)/make-version.sh > $@
126 # should this be in Rules?
127 configure: configure.in aclocal.m4
135 local-maintainerclean:
138 $(MAKE) INSTALL="$(INSTALL) -s" install
140 install: localinstall
145 uninstall: localuninstall
151 -$(INSTALL) -d $(prefix)/doc/$(package)
152 $(foreach i, $(EXTRA_DOC_FILES),\
153 cp -r $(i) $(prefix)/doc/$(package) &&) true
158 include $(stepdir)/package.make
160 include $(outdir)/dummy.dep $(DEP_FILES)
164 touch $(outdir)/dummy.dep
173 $(depth)/$(configuration).make: $(depth)/configure
174 @echo "**************************************"
175 @echo "configure changed! You should probably reconfigure manually."
176 @echo "**************************************"
177 (cd $(depth); ./config.status)
178 touch $@ # do something for multiple simultaneous configs.