1 .PHONY : all clean bin-clean config default dist doc exe help\
14 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
15 bin-clean: local-bin-clean
22 local-bin-clean: local-clean
24 ifneq ($(strip $(depth)),.)
26 $(MAKE) -C $(depth) dist
31 $(MAKE) local-distclean
34 $(MAKE) local-distclean
37 rm -f aclocal.m4 configure
41 $(MAKE) local-maintainerclean
42 $(MAKE) local-distclean
45 # This doesn't allow command-line options, is it really useful? -jm
47 ./$(src-depth)/configure
52 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
53 Usage: make ["VARIABLE=value"]... [TARGET]\n\
55 Targets specific to current directory:\n"
57 help: generic-help local-help
58 @echo -e "Generic targets:\n\
59 all * update everything except website documentation\n\
60 clean * remove all generated stuff in $(outdir)\n\
61 bin-clean * same as clean, except that mf/out is preserved\n\
62 default same as the empty target\n\
63 exe update all executables\n\
65 install * install programs and data (prefix=$(prefix))\n\
66 uninstall* uninstall programs and data\n\
67 lib update all libraries\n\
68 web * update website in directory \`out-www'\n\
69 web-install * install website documentation in (webdir=$(webdir))\n\
70 and Info documentation with images\n\
71 web-clean * clean \`out-www' directory\n\
72 TAGS generate tagfiles\n\
74 \`make' may be invoked from any subdirectory.\n\
75 Note that all commands marked with a star (*) recurse into subdirectories;\n\
76 prepend \`local-' to restrict operation to the current directory.\n\
77 Example: \`local-clean'."
81 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
82 mkdir -p $(distdir)/$(localdir)
83 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
85 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
86 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
88 case "$(OUT_DIST_FILES)x" in x) ;; *) \
89 mkdir -p $(distdir)/$(localdir)/$(outdir); \
90 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
92 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
102 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
104 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
105 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
106 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
107 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
111 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
112 $(PYTHON) $(step-bindir)/make-version.py $< > $@
114 $(outdir)/config.hh: $(config_h)
117 configure: configure.in aclocal.m4
118 NOCONFIGURE=yes $(src-depth)/autogen.sh
125 local-maintainerclean:
128 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
130 ifeq ($(strip $(depth)),.)
136 install: local-install
142 uninstall: local-uninstall
148 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
149 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
151 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
155 touch $(outdir)/dummy.dep
156 echo '*' > $(outdir)/.gitignore
164 $(config_make): $(top-src-dir)/configure
165 @echo "************************************************************"
166 @echo "configure changed! You should probably reconfigure manually."
167 @echo "************************************************************"
168 (cd $(top-build-dir); ./config.status)
169 touch $@ # do something for multiple simultaneous configs.
172 ################ website.
181 WWW-post: local-WWW-post
186 $(MAKE) out=www WWW-post
189 $(MAKE) out=www clean