1 # title generic make targets
2 # file make/Targets.make
4 .PHONY : all clean config default dist doc doc++ exe help html lib TAGS\
11 # be careful about deletion.
16 ifneq ($(strip $(depth)),.)
23 $(MAKE) local-distclean
27 $(MAKE) local-maintainerclean
28 $(MAKE) local-distclean
42 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
43 Usage: $(MAKE) ["VARIABLE=value"]... [TARGET]\n\
47 help: generic-help local-help
49 all update everything\n\
50 clean remove all genated stuff in $(oudir)\n\
51 config rerun configure\n\
52 deb build Debian package\n\
53 default same as the empty target\n\
54 diff generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
60 dist roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
61 distclean cleaner than clean (duh)\n\
62 doc update all documentation\n\
63 doc++ make doc++ documentation\n\
64 exe update all executables\n\
66 install install programs and data (prefix=$(prefix))\n\
67 lib update all libraries\n\
68 release roll tarball and generate patch\n\
69 rpm build RedHat package\n\
70 po make new translation Portable Object database\n\
71 po-update update translation Portable Object database\n\
73 TAGS genarate tagfiles\n\
74 zip build binary doze distribution\n\
76 Make may be invoked from any subdirectory\n\
77 Note that all commands recurse into SUBSDIRS\n\
90 (cd $(outdir); sh ../$(step-bindir)/tar-docxx.sh $(package)-$(TOPLEVEL_VERSION).tar.gz)
93 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
94 mkdir -p $(distdir)/$(localdir)
95 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
97 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
98 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
101 case "$(OUT_DIST_FILES)x" in x) ;; *) \
102 mkdir $(distdir)/$(localdir)/out; \
103 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
105 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
106 # absolute for installed stepmake
107 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
114 -if [ "$(TAGS_FILES)" != "" ]; then \
115 etags -CT $(TAGS_FILES) || \
116 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
122 $(outdir)/VERSION: $(depth)/VERSION
125 $(outdir)/version.hh: $(outdir)/VERSION
126 $(PYTHON) $(step-bindir)/make-version.py $< > $@
128 $(outdir)/config.h: $(config_h)
131 # should this be in Rules?
132 configure: configure.in aclocal.m4
140 local-maintainerclean:
143 $(MAKE) INSTALL="$(INSTALL) -s" install
145 install: localinstall
150 uninstall: localuninstall
156 -$(INSTALL) -d $(prefix)/doc/$(package)
157 $(foreach i, $(EXTRA_DOC_FILES),\
158 cp -r $(i) $(prefix)/doc/$(package) &&) true
165 include $(stepdir)/package.make
167 include $(outdir)/dummy.dep $(DEP_FILES)
171 touch $(outdir)/dummy.dep
180 $(depth)/$(configuration).make: $(depth)/configure
181 @echo "**************************************"
182 @echo "configure changed! You should probably reconfigure manually."
183 @echo "**************************************"
184 (cd $(depth); ./config.status)
185 touch $@ # do something for multiple simultaneous configs.