1 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
14 ifneq ($(strip $(depth)),.)
16 $(MAKE) -C $(depth) dist
21 $(MAKE) local-distclean
24 $(MAKE) local-distclean
27 rm -f aclocal.m4 configure
31 $(MAKE) local-maintainerclean
32 $(MAKE) local-distclean
38 ./$(src-depth)/configure
46 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
47 Usage: make ["VARIABLE=value"]... [TARGET]\n\
51 help: generic-help local-help
53 all update everything\n\
54 clean remove all generated stuff in $(outdir)\n\
55 check run self tests\n\
56 default same as the empty target\n\
57 exe update all executables\n\
59 install install programs and data (prefix=$(prefix))\n\
60 lib update all libraries\n\
61 web update website in directory \`out-www'\n\
62 web-install install website documentation in (webdir=$(webdir))\n\
63 web-clean clean \`out-www' directory\n\
64 TAGS generate tagfiles\n\
66 \`make' may be invoked from any subdirectory.\n\
67 Note that all commands recurse into subdirectories;\n\
68 prepend \`local-' to restrict operation to the current directory.\n\
69 Example: \`local-clean'.\n"
74 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
75 mkdir -p $(distdir)/$(localdir)
76 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
78 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
79 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
81 case "$(OUT_DIST_FILES)x" in x) ;; *) \
82 mkdir -p $(distdir)/$(localdir)/$(outdir); \
83 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
85 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
95 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
97 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
98 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
99 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
100 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
104 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
105 $(PYTHON) $(step-bindir)/make-version.py $< > $@
107 $(outdir)/config.hh: $(config_h)
110 configure: configure.in aclocal.m4
111 NOCONFIGURE=yes $(src-depth)/autogen.sh
118 local-maintainerclean:
121 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
123 ifeq ($(strip $(depth)),.)
129 install: local-install
135 uninstall: local-uninstall
141 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
142 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
144 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
147 @echo please ignore innocent warning about dummy.dep
149 touch $(outdir)/dummy.dep
150 echo '*' > $(outdir)/.gitignore
158 $(config_make): $(top-src-dir)/configure
159 @echo "************************************************************"
160 @echo "configure changed! You should probably reconfigure manually."
161 @echo "************************************************************"
162 (cd $(top-build-dir); ./config.status)
163 touch $@ # do something for multiple simultaneous configs.
167 $(MAKE) -C $(depth)/debian
168 cd $(depth) && debuild
171 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir) $(makeflags)
172 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
175 $(PYTHON) $(step-bindir)/release.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir)
178 ################ website.
187 WWW-post: local-WWW-post
192 $(MAKE) out=www WWW-post