1 .PHONY : all clean config default 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
35 # This doesn't allow command-line options, is it really useful? -jm
37 ./$(src-depth)/configure
42 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
43 Usage: make ["VARIABLE=value"]... [TARGET]\n\
45 Targets specific to current directory:\n"
47 help: generic-help local-help
48 @echo -e "Generic targets:\n\
49 all * update everything except website documentation\n\
50 clean * remove all generated stuff in $(outdir)\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 and Info documentation with images\n\
59 web-clean * clean \`out-www' directory\n\
60 TAGS generate tagfiles\n\
62 \`make' may be invoked from any subdirectory.\n\
63 Note that all commands marked with a star (*) recurse into subdirectories;\n\
64 prepend \`local-' to restrict operation to the current directory.\n\
65 Example: \`local-clean'."
69 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
70 mkdir -p $(distdir)/$(localdir)
71 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
73 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
74 $(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) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
90 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
92 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
93 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
94 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
95 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
99 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
100 $(PYTHON) $(step-bindir)/make-version.py $< > $@
102 $(outdir)/config.hh: $(config_h)
105 configure: configure.in aclocal.m4
106 NOCONFIGURE=yes $(src-depth)/autogen.sh
113 local-maintainerclean:
116 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
118 ifeq ($(strip $(depth)),.)
124 install: local-install
130 uninstall: local-uninstall
136 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
137 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
139 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
142 @echo please ignore innocent warning about dummy.dep
144 touch $(outdir)/dummy.dep
145 echo '*' > $(outdir)/.gitignore
153 $(config_make): $(top-src-dir)/configure
154 @echo "************************************************************"
155 @echo "configure changed! You should probably reconfigure manually."
156 @echo "************************************************************"
157 (cd $(top-build-dir); ./config.status)
158 touch $@ # do something for multiple simultaneous configs.
161 ################ website.
170 WWW-post: local-WWW-post
175 $(MAKE) out=www WWW-post
178 find -name out-www | xargs rm -rf
179 $(MAKE) out=www clean