1 # title generic make targets
2 # file make/Targets.make
4 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
13 # be careful about deletion.
18 ifneq ($(strip $(depth)),.)
25 $(MAKE) local-distclean
29 $(MAKE) local-maintainerclean
30 $(MAKE) local-distclean
44 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
45 Usage: make ["VARIABLE=value"]... [TARGET]\n\
49 help: generic-help local-help
51 all update everything\n\
52 clean remove all genated stuff in $(outdir)\n\
53 config rerun configure\n\
54 deb build Debian package\n\
55 default same as the empty target\n\
56 diff generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
62 dist roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
63 distclean cleaner than clean (duh)\n\
64 doc update all documentation\n\
65 exe update all executables\n\
67 install install programs and data (prefix=$(prefix))\n\
68 lib update all libraries\n\
69 release roll tarball and generate patch\n\
70 rpm build Red Hat package\n\
71 po make new translation Portable Object database\n\
72 po-replace do po-update and replace catalogs with msgmerged versions\n\
73 po-update update translation Portable Object database\n\
74 TAGS genarate tagfiles\n\
76 Make may be invoked from any subdirectory\n\
77 Note that all commands recurse into SUBDIRS;\n\
78 prepend \`local-' to do only cwd, eg: local-clean\n\
89 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
90 mkdir -p $(distdir)/$(localdir)
91 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
93 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
94 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
97 case "$(OUT_DIST_FILES)x" in x) ;; *) \
98 mkdir -p $(distdir)/$(localdir)/out; \
99 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
101 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
102 # absolute for installed stepmake
103 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
110 -if [ "$(TAGS_FILES)" != "" ]; then \
111 etags $(ETAGS_FLAGS) $(TAGS_FILES) || \
112 ctags $(CTAGS_FLAGS) ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
118 $(outdir)/VERSION: $(depth)/VERSION
121 $(outdir)/version.hh: $(outdir)/VERSION
122 $(PYTHON) $(step-bindir)/make-version.py $< > $@
124 $(outdir)/config.h: $(config_h)
127 # should this be in Rules?
128 configure: configure.in aclocal.m4
136 local-maintainerclean:
139 $(MAKE) INSTALL="$(INSTALL) -s" install
141 install: local-install
146 uninstall: local-uninstall
152 -$(INSTALL) -d $(prefix)/doc/$(package)
153 $(foreach i, $(EXTRA_DOC_FILES),\
154 cp -r $(i) $(prefix)/doc/$(package) &&) true
161 include $(stepdir)/package.make
163 include $(outdir)/dummy.dep $(DEP_FILES)
167 touch $(outdir)/dummy.dep
176 $(depth)/$(configuration).make: $(depth)/configure
177 @echo "**************************************"
178 @echo "configure changed! You should probably reconfigure manually."
179 @echo "**************************************"
180 (cd $(depth); ./config.status)
181 touch $@ # do something for multiple simultaneous configs.