1 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
10 # be careful about deletion.
15 ifneq ($(strip $(depth)),.)
22 $(MAKE) local-distclean
26 $(MAKE) local-maintainerclean
27 $(MAKE) local-distclean
41 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
42 Usage: make ["VARIABLE=value"]... [TARGET]\n\
47 webdir = $(local_package_docdir)
48 help: generic-help local-help
50 all update everything\n\
51 clean remove all genated stuff in $(outdir)\n\
53 default same as the empty target\n\
54 exe update all executables\n\
56 install install programs and data (prefix=$(prefix))\n\
57 lib update all libraries\n\
58 web update website in out-www\n\
59 web-install install website documentation in (webdir=$(webdir))\n\
60 web-clean clean out-www\n\
61 TAGS genarate tagfiles\n\
63 Make may be invoked from any subdirectory\n\
64 Note that all commands recurse into SUBDIRS;\n\
65 prepend \`local-' to do only cwd, eg: local-clean\n\
70 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
71 mkdir -p $(distdir)/$(localdir)
72 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
74 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
75 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
78 case "$(OUT_DIST_FILES)x" in x) ;; *) \
79 mkdir -p $(distdir)/$(localdir)/$(outdir); \
80 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
82 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
83 # absolute for installed stepmake
84 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
91 -if [ "$(TAGS_FILES)" != "" ]; then \
92 etags $(ETAGS_FLAGS) $(TAGS_FILES) || \
93 ctags $(CTAGS_FLAGS) ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
98 $(outdir)/version.hh: $(config_make)
99 $(PYTHON) $(step-bindir)/make-version.py PACKAGE_NAME=$(PACKAGE_NAME) \
100 MAJOR_VERSION=$(MAJOR_VERSION) \
101 MINOR_VERSION=$(MINOR_VERSION) \
102 PATCH_LEVEL=$(PATCH_LEVEL) \
103 MY_PATCH_LEVEL=$(MY_PATCH_LEVEL) \
106 $(outdir)/config.h: $(config_h)
109 configure: configure.in aclocal.m4
110 NOCONFIGURE=yes $(srcdir)/autogen.sh
117 local-maintainerclean:
120 $(MAKE) INSTALL="$(INSTALL) -s" install
122 ifneq ($(strip $(depth)),.)
126 install: local-install
132 uninstall: local-uninstall
138 -$(INSTALL) -d $(prefix)/doc/$(package)
139 $(foreach i, $(EXTRA_DOC_FILES),\
140 cp -r $(i) $(prefix)/doc/$(package) &&) true
142 include $(outdir)/dummy.dep $(DEP_FILES) # expect a warning here
146 touch $(outdir)/dummy.dep
155 $(config_make): $(topdir)/configure $(topdir)/VERSION
156 @echo "************************************************************"
157 @echo "configure changed! You should probably reconfigure manually."
158 @echo "************************************************************"
159 (cd $(builddir); ./config.status)
160 touch $@ # do something for multiple simultaneous configs.
164 $(MAKE) -C $(depth)/debian
165 cd $(depth) && debuild
168 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(topdir)/$(outdir) --package=$(topdir) $(makeflags)
169 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
172 $(PYTHON) $(step-bindir)/release.py --outdir=$(topdir)/$(outdir) --package=$(topdir)
175 ################ website.
184 WWW-post: local-WWW-post
189 $(MAKE) out=www WWW-post