1 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
10 # be careful about deletion.
15 ifneq ($(strip $(depth)),.)
22 $(MAKE) local-distclean
26 $(MAKE) local-maintainerclean
27 $(MAKE) local-distclean
33 ./$(src-depth)/configure
41 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
42 Usage: make ["VARIABLE=value"]... [TARGET]\n\
46 help: generic-help local-help
48 all update everything\n\
49 clean remove all generated stuff in $(outdir)\n\
50 check run self tests\n\
51 default same as the empty target\n\
52 exe update all executables\n\
54 install install programs and data (prefix=$(prefix))\n\
55 lib update all libraries\n\
56 web update website in directory \`out-www'\n\
57 web-install install website documentation in (webdir=$(webdir))\n\
58 web-clean clean \`out-www' directory\n\
59 TAGS generate tagfiles\n\
61 \`make' may be invoked from any subdirectory.\n\
62 Note that all commands recurse into subdirectories;\n\
63 prepend \`local-' to restrict operation to the current directory.\n\
64 Example: \`local-clean'.\n"
68 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
69 mkdir -p $(distdir)/$(localdir)
70 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
72 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
73 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
76 case "$(OUT_DIST_FILES)x" in x) ;; *) \
77 mkdir -p $(distdir)/$(localdir)/$(outdir); \
78 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
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) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
92 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
94 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
95 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
96 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
97 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
101 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
102 $(PYTHON) $(step-bindir)/make-version.py $< > $@
104 $(outdir)/config.hh: $(config_h)
107 configure: configure.in aclocal.m4
108 NOCONFIGURE=yes $(src-depth)/autogen.sh
115 local-maintainerclean:
118 $(MAKE) INSTALL="$(INSTALL) -s" install
120 ifeq ($(strip $(depth)),.)
126 install: local-install
132 uninstall: local-uninstall
138 -$(INSTALL) -d $(DESTDIR)$(prefix)/doc/$(package)
139 $(foreach i, $(EXTRA_DOC_FILES),\
140 cp -r $(i) $(prefix)/doc/$(package) &&) true
142 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
145 @echo please ignore innocent warning about dummy.dep
147 touch $(outdir)/dummy.dep
155 $(config_make): $(top-src-dir)/configure
156 @echo "************************************************************"
157 @echo "configure changed! You should probably reconfigure manually."
158 @echo "************************************************************"
159 (cd $(top-build-dir); ./config.status)
160 touch $@ # do something for multiple simultaneous configs.
164 $(MAKE) -C $(depth)/debian
165 cd $(depth) && debuild
168 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir) $(makeflags)
169 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
172 $(PYTHON) $(step-bindir)/release.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir)
175 ################ website.
184 WWW-post: local-WWW-post
189 $(MAKE) out=www WWW-post