1 .PHONY : all clean config default dist dist exe help html lib TAGS\
2 po web web-1 WWW-1 WWW-2 WWW-post local-WWW-1 local-WWW-2\
15 ifneq ($(strip $(depth)),.)
17 $(MAKE) -C $(depth) dist
22 $(MAKE) local-distclean
25 $(MAKE) local-distclean
28 rm -f aclocal.m4 configure
32 $(MAKE) local-maintainerclean
33 $(MAKE) local-distclean
36 # This doesn't allow command-line options, is it really useful? -jm
38 ./$(src-depth)/configure
43 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
44 Usage: make ["VARIABLE=value"]... [TARGET]\n\
46 Targets specific to current directory:\n"
48 help: generic-help local-help
49 @echo -e "Generic targets:\n\
50 all * update everything except website documentation\n\
51 clean * remove all generated stuff in $(outdir)\n\
52 default same as the empty target\n\
53 exe update all executables\n\
55 install * install programs and data (prefix=$(prefix))\n\
56 lib update all libraries\n\
57 web * update website in directory \`out-www'\n\
58 web-install * install website documentation in (webdir=$(webdir))\n\
59 and Info documentation with images\n\
60 web-clean * clean \`out-www' directory\n\
61 TAGS generate tagfiles\n\
63 \`make' may be invoked from any subdirectory.\n\
64 Note that all commands marked with a star (*) recurse into subdirectories;\n\
65 prepend \`local-' to restrict operation to the current directory.\n\
66 Example: \`local-clean'."
70 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
71 mkdir -p $(distdir)/$(localdir)
72 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
74 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
75 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
77 case "$(OUT_DIST_FILES)x" in x) ;; *) \
78 mkdir -p $(distdir)/$(localdir)/$(outdir); \
79 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
81 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
91 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
93 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
94 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
95 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
96 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
100 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
101 $(PYTHON) $(step-bindir)/make-version.py $< > $@
103 $(outdir)/config.hh: $(config_h)
106 configure: configure.in aclocal.m4
107 NOCONFIGURE=yes $(src-depth)/autogen.sh
114 local-maintainerclean:
117 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
119 ifeq ($(strip $(depth)),.)
125 install: local-install
131 uninstall: local-uninstall
137 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
138 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
140 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
143 @echo please ignore innocent warning about dummy.dep
145 touch $(outdir)/dummy.dep
146 echo '*' > $(outdir)/.gitignore
154 $(config_make): $(top-src-dir)/configure
155 @echo "************************************************************"
156 @echo "configure changed! You should probably reconfigure manually."
157 @echo "************************************************************"
158 (cd $(top-build-dir); ./config.status)
159 touch $@ # do something for multiple simultaneous configs.
162 #### Documentation (website and tarball)
164 # documentation is built in two stages,
165 # plus WWW-post (only at toplevel)
166 # see INSTALL for more information.
180 $(MAKE) out=www WWW-1
181 $(MAKE) out=www WWW-2
182 $(MAKE) out=www WWW-post
185 $(MAKE) out=www WWW-1
188 $(MAKE) out=www clean