1 .PHONY : all clean bin-clean config default dist doc exe help html lib TAGS\
2 po web web-1 WWW-1 WWW-2 WWW-post local-WWW-1 local-WWW-2
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-clean * clean \`out-www' directory\n\
70 TAGS generate tagfiles\n\
72 \`make' may be invoked from any subdirectory.\n\
73 Note that all commands marked with a star (*) recurse into subdirectories;\n\
74 prepend \`local-' to restrict operation to the current directory.\n\
75 Example: \`local-clean'."
79 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
80 mkdir -p $(distdir)/$(localdir)
81 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
83 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
84 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
86 case "$(OUT_DIST_FILES)x" in x) ;; *) \
87 mkdir -p $(distdir)/$(localdir)/$(outdir); \
88 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
90 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
100 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
102 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
103 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
104 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
105 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
109 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
110 $(PYTHON) $(step-bindir)/make-version.py $< > $@
112 $(outdir)/config.hh: $(config_h)
115 configure: configure.in aclocal.m4
116 NOCONFIGURE=yes $(src-depth)/autogen.sh
123 local-maintainerclean:
126 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
128 ifeq ($(strip $(depth)),.)
134 install: local-install
140 uninstall: local-uninstall
146 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
147 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
149 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
153 touch $(outdir)/dummy.dep
154 echo '*' > $(outdir)/.gitignore
162 $(config_make): $(top-src-dir)/configure
163 @echo "************************************************************"
164 @echo "configure changed! You should probably reconfigure manually."
165 @echo "************************************************************"
166 (cd $(top-build-dir); ./config.status)
167 touch $@ # do something for multiple simultaneous configs.
170 #### Documentation (website and tarball)
172 # documentation is built in two stages,
173 # plus WWW-post (only at toplevel)
174 # see INSTALL for more information.
187 $(MAKE) out=www WWW-2
188 $(MAKE) out=www WWW-post
191 $(MAKE) -C $(depth)/scripts/build out=
192 $(MAKE) out=www WWW-1
195 $(MAKE) out=www clean