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.
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 $(oudir)\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 doc++ make doc++ documentation\n\
66 exe update all executables\n\
68 install install programs and data (prefix=$(prefix))\n\
69 lib update all libraries\n\
70 release roll tarball and generate patch\n\
71 rpm build RedHat package\n\
72 po make new translation Portable Object database\n\
73 po-update update translation Portable Object database\n\
75 TAGS genarate tagfiles\n\
76 zip build binary doze distribution\n\
78 Make may be invoked from any subdirectory\n\
79 Note that all commands recurse into SUBSDIRS\n\
91 # If you're not the maintainer, there's no tarball in $(outdir)!
92 # Maybe, there is one in ../releases
95 $(SHELL) ../$(step-bindir)/tar-docxx.sh $(package)-$(TOPLEVEL_VERSION).tar.gz || \
96 $(SHELL) ../$(step-bindir)/tar-docxx.sh $(release-dir)/$(package)-$(TOPLEVEL_VERSION).tar.gz)
99 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
100 mkdir -p $(distdir)/$(localdir)
101 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
103 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
104 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
107 case "$(OUT_DIST_FILES)x" in x) ;; *) \
108 mkdir -p $(distdir)/$(localdir)/out; \
109 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
111 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
112 # absolute for installed stepmake
113 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
120 -if [ "$(TAGS_FILES)" != "" ]; then \
121 etags -CT $(TAGS_FILES) || \
122 ctags -h ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
128 $(outdir)/VERSION: $(depth)/VERSION
131 $(outdir)/version.hh: $(outdir)/VERSION
132 $(PYTHON) $(step-bindir)/make-version.py $< > $@
134 $(outdir)/config.h: $(config_h)
137 # should this be in Rules?
138 configure: configure.in aclocal.m4
146 local-maintainerclean:
149 $(MAKE) INSTALL="$(INSTALL) -s" install
151 install: localinstall
156 uninstall: localuninstall
162 -$(INSTALL) -d $(prefix)/doc/$(package)
163 $(foreach i, $(EXTRA_DOC_FILES),\
164 cp -r $(i) $(prefix)/doc/$(package) &&) true
171 include $(stepdir)/package.make
173 include $(outdir)/dummy.dep $(DEP_FILES)
177 touch $(outdir)/dummy.dep
186 $(depth)/$(configuration).make: $(depth)/configure
187 @echo "**************************************"
188 @echo "configure changed! You should probably reconfigure manually."
189 @echo "**************************************"
190 (cd $(depth); ./config.status)
191 touch $@ # do something for multiple simultaneous configs.