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)
90 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
91 mkdir -p $(distdir)/$(localdir)
92 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
94 #UGH UGH . make ifdef doesn't mix with string substitution semantics (late expansion vs. early expansion)
96 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
97 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
100 case "$(OUT_DIST_FILES)x" in x) ;; *) \
101 mkdir $(distdir)/$(localdir)/out; \
102 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
104 $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
111 -if [ "$(TAGS_FILES)" != "" ]; then \
112 etags -CT $(TAGS_FILES) || \
113 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
118 $(outdir)/version.hh: VERSION
119 sh ./$(step-bindir)/make-version.sh > $@
122 # should this be in Rules?
123 configure: configure.in aclocal.m4
131 local-maintainerclean:
134 $(MAKE) INSTALL="$(INSTALL) -s" install
136 install: localinstall
141 uninstall: localuninstall
147 -$(INSTALL) -d $(prefix)/doc/$(package)
148 $(foreach i, $(EXTRA_DOC_FILES),\
149 cp -r $(i) $(prefix)/doc/$(package) &&) true
154 include $(stepdir)/package.make
156 include $(outdir)/dummy.dep $(DEP_FILES)
160 touch $(outdir)/dummy.dep
169 $(depth)/$(configuration).make: $(depth)/configure
170 @echo "**************************************"
171 @echo "configure changed! You should probably reconfigure manually."
172 @echo "**************************************"
173 (cd $(depth); ./config.status)