1 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
10 # be careful about deletion.
15 ifneq ($(strip $(depth)),.)
17 $(MAKE) -C $(depth) dist
22 $(MAKE) local-distclean
25 $(MAKE) local-distclean
26 find . -type d -name out | xargs rm -rf
27 find . -type d -name out-www | xargs rm -rf
28 rm -f aclocal.m4 configure
32 $(MAKE) local-maintainerclean
33 $(MAKE) local-distclean
39 ./$(src-depth)/configure
47 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
48 Usage: make ["VARIABLE=value"]... [TARGET]\n\
52 help: generic-help local-help
54 all update everything\n\
55 clean remove all generated stuff in $(outdir)\n\
56 check run self tests\n\
57 default same as the empty target\n\
58 exe update all executables\n\
60 install install programs and data (prefix=$(prefix))\n\
61 lib update all libraries\n\
62 web update website in directory \`out-www'\n\
63 web-install install website documentation in (webdir=$(webdir))\n\
64 web-clean clean \`out-www' directory\n\
65 TAGS generate tagfiles\n\
67 \`make' may be invoked from any subdirectory.\n\
68 Note that all commands recurse into subdirectories;\n\
69 prepend \`local-' to restrict operation to the current directory.\n\
70 Example: \`local-clean'.\n"
75 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
76 mkdir -p $(distdir)/$(localdir)
77 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
79 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
80 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
82 case "$(OUT_DIST_FILES)x" in x) ;; *) \
83 mkdir -p $(distdir)/$(localdir)/$(outdir); \
84 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
86 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
96 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
98 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
99 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
100 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
101 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
105 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
106 $(PYTHON) $(step-bindir)/make-version.py $< > $@
108 $(outdir)/config.hh: $(config_h)
111 configure: configure.in aclocal.m4
112 NOCONFIGURE=yes $(src-depth)/autogen.sh
119 local-maintainerclean:
122 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
124 ifeq ($(strip $(depth)),.)
130 install: local-install
136 uninstall: local-uninstall
142 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
143 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
145 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
148 @echo please ignore innocent warning about dummy.dep
150 touch $(outdir)/dummy.dep
151 echo '*' > $(outdir)/.gitignore
159 $(config_make): $(top-src-dir)/configure
160 @echo "************************************************************"
161 @echo "configure changed! You should probably reconfigure manually."
162 @echo "************************************************************"
163 (cd $(top-build-dir); ./config.status)
164 touch $@ # do something for multiple simultaneous configs.
168 $(MAKE) -C $(depth)/debian
169 cd $(depth) && debuild
172 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir) $(makeflags)
173 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
176 $(PYTHON) $(step-bindir)/release.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir)
179 ################ website.
188 WWW-post: local-WWW-post
193 $(MAKE) out=www WWW-post