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 default same as the empty target\n\
54 exe update all executables\n\
56 install install programs and data (prefix=$(prefix))\n\
57 lib update all libraries\n\
58 TAGS genarate tagfiles\n\
60 Make may be invoked from any subdirectory\n\
61 Note that all commands recurse into SUBDIRS;\n\
62 prepend \`local-' to do only cwd, eg: local-clean\n\
68 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
69 mkdir -p $(distdir)/$(localdir)
70 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
72 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
73 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
76 case "$(OUT_DIST_FILES)x" in x) ;; *) \
77 mkdir -p $(distdir)/$(localdir)/out; \
78 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
80 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
81 # absolute for installed stepmake
82 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
89 -if [ "$(TAGS_FILES)" != "" ]; then \
90 etags $(ETAGS_FLAGS) $(TAGS_FILES) || \
91 ctags $(CTAGS_FLAGS) ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
97 $(outdir)/VERSION: $(depth)/VERSION
100 $(outdir)/version.hh: $(outdir)/VERSION
101 $(PYTHON) $(step-bindir)/make-version.py $< > $@
103 $(outdir)/config.h: $(config_h)
106 # should this be in Rules?
107 configure: configure.in aclocal.m4
115 local-maintainerclean:
118 $(MAKE) INSTALL="$(INSTALL) -s" install
120 install: local-install
125 uninstall: local-uninstall
131 -$(INSTALL) -d $(prefix)/doc/$(package)
132 $(foreach i, $(EXTRA_DOC_FILES),\
133 cp -r $(i) $(prefix)/doc/$(package) &&) true
135 include $(stepdir)/package.make
137 include $(outdir)/dummy.dep $(DEP_FILES)
141 touch $(outdir)/dummy.dep
150 $(depth)/$(configuration).make: $(depth)/configure
151 @echo "************************************************************"
152 @echo "configure changed! You should probably reconfigure manually."
153 @echo "************************************************************"
154 (cd $(depth); ./config.status)
155 touch $@ # do something for multiple simultaneous configs.