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\
15 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
16 bin-clean: local-bin-clean
23 local-bin-clean: local-clean
25 ifneq ($(strip $(depth)),.)
27 $(MAKE) -C $(depth) dist
32 $(MAKE) local-distclean
35 $(MAKE) local-distclean
38 rm -f aclocal.m4 configure
42 $(MAKE) local-maintainerclean
43 $(MAKE) local-distclean
46 # This doesn't allow command-line options, is it really useful? -jm
48 ./$(src-depth)/configure
53 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
54 Usage: make ["VARIABLE=value"]... [TARGET]\n\
56 Targets specific to current directory:\n"
58 help: generic-help local-help
59 @echo -e "Generic targets:\n\
60 all * update everything except website documentation\n\
61 clean * remove all generated stuff in $(outdir)\n\
62 bin-clean * same as clean, except that mf/out is preserved\n\
63 default same as the empty target\n\
64 exe update all executables\n\
66 install * install programs and data (prefix=$(prefix))\n\
67 uninstall* uninstall programs and data\n\
68 lib update all libraries\n\
69 web * update website in directory \`out-www'\n\
70 web-install * install website documentation in (webdir=$(webdir))\n\
71 and Info documentation with images\n\
72 web-clean * clean \`out-www' directory\n\
73 TAGS generate tagfiles\n\
75 \`make' may be invoked from any subdirectory.\n\
76 Note that all commands marked with a star (*) recurse into subdirectories;\n\
77 prepend \`local-' to restrict operation to the current directory.\n\
78 Example: \`local-clean'."
82 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
83 mkdir -p $(distdir)/$(localdir)
84 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
86 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
87 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
89 case "$(OUT_DIST_FILES)x" in x) ;; *) \
90 mkdir -p $(distdir)/$(localdir)/$(outdir); \
91 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
93 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
103 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
105 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
106 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
107 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
108 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
112 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
113 $(PYTHON) $(step-bindir)/make-version.py $< > $@
115 $(outdir)/config.hh: $(config_h)
118 configure: configure.in aclocal.m4
119 NOCONFIGURE=yes $(src-depth)/autogen.sh
126 local-maintainerclean:
129 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
131 ifeq ($(strip $(depth)),.)
137 install: local-install
143 uninstall: local-uninstall
149 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
150 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
152 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
156 touch $(outdir)/dummy.dep
157 echo '*' > $(outdir)/.gitignore
165 $(config_make): $(top-src-dir)/configure
166 @echo "************************************************************"
167 @echo "configure changed! You should probably reconfigure manually."
168 @echo "************************************************************"
169 (cd $(top-build-dir); ./config.status)
170 touch $@ # do something for multiple simultaneous configs.
173 #### Documentation (website and tarball)
175 # documentation is built in two stages,
176 # plus WWW-post (only at toplevel)
177 # see INSTALL for more information.
191 $(MAKE) out=www WWW-1
192 $(MAKE) out=www WWW-2
193 $(MAKE) out=www WWW-post
196 $(MAKE) out=www WWW-1
199 $(MAKE) out=www clean