1 # title generic make targets
2 # file make/Targets.make
4 .PHONY : all clean config default dist doc doc++ exe help html lib TAGS\
6 # VPATH=$(outdir)/ #ugh?
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 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
89 mkdir -p $(distdir)/$(localdir)
90 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
92 #UGH UGH . make ifdef doesn't mix with string substitution semantics (late expansion vs. early expansion)
94 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
95 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
98 case "$(OUT_DIST_FILES)x" in x) ;; *) \
99 mkdir $(distdir)/$(localdir)/out; \
100 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
102 $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
109 -if [ "$(TAGS_FILES)" != "" ]; then \
110 etags -CT $(TAGS_FILES) || \
111 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
117 $(outdir)/VERSION: $(depth)/VERSION
120 $(outdir)/version.hh: $(outdir)/VERSION
121 sh ./$(step-bindir)/make-version.sh $< > $@
123 # should this be in Rules?
124 configure: configure.in aclocal.m4
132 local-maintainerclean:
135 $(MAKE) INSTALL="$(INSTALL) -s" install
137 install: localinstall
142 uninstall: localuninstall
148 -$(INSTALL) -d $(prefix)/doc/$(package)
149 $(foreach i, $(EXTRA_DOC_FILES),\
150 cp -r $(i) $(prefix)/doc/$(package) &&) true
157 include $(stepdir)/package.make
159 include $(outdir)/dummy.dep $(DEP_FILES)
163 touch $(outdir)/dummy.dep
172 $(depth)/$(configuration).make: $(depth)/configure
173 @echo "**************************************"
174 @echo "configure changed! You should probably reconfigure manually."
175 @echo "**************************************"
176 (cd $(depth); ./config.status)
177 touch $@ # do something for multiple simultaneous configs.