top_srcdir ?= . cvs-common: $(top_srcdir)/acinclude.m4 aclocal autoheader automake --add-missing autoconf automake cvs-gettext: autopoint -f rm -rf m4/ # cp -f admin/po-cvsignore po/.cvsignore cvs-libtool: libtoolize --force --automake cvs-libltdl: rm -rf libltdl/ libtoolize --force --ltdl --automake --copy # (cd libltdl && patch < ../admin/libltdl-configure-in.diff \ # && aclocal && automake && autoconf) # cp -f admin/libltdl-cvsignore libltdl/.cvsignore #cvs-gettext-min: cvs-gettext # rm -rf intl CATTED = $(top_srcdir)/Doxyfile.in $(top_srcdir)/acinclude.m4 DEBIAN_FILES = $(top_srcdir)/debian/rules $(top_srcdir)/debian/changelog \ $(top_srcdir)/debian/control \ $(wildcard $(top_srcdir)/debian/*.install) \ $(top_srcdir)/debian/docs $(top_srcdir)/debian/copyright YAADFAT_FILES = $(top_srcdir)/admin/AUTHORS $(top_srcdir)/admin/COPYING \ $(top_srcdir)/admin/README $(CATTED): $(top_srcdir)/%: $(top_srcdir)/admin/%.in $(top_srcdir)/%.in cat $(^) > $(@) dist-hook: doxygen-stamp if test -L $(top_srcdir)/admin; then \ cp -a \ `find $(top_srcdir)/admin/ -type f -not -name \*~ -maxdepth 1` \ $(distdir)/admin/; \ fi cp -a doc $(distdir)/doc tar chozf $(PACKAGE)-$(VERSION)-doc.tar.gz $(distdir)/doc rm -rf $(distdir)/doc maintainer-clean-local: maintainer-clean-local2 for f in `find -name .cvsignore -follow`; do \ (D=`dirname $$f`; test -d "$$D" && cd "$$D" && rm -rf `cat .cvsignore` || true); \ done # cd $(srcdir) && rm -f configure aclocal.m4 config.h.in # cd $(srcdir) && rm -f Makefile.in .lineno && rm -rf autom4te.cache # rm -f stamp-h stamp-h.in # rm -f config.status config.log Doxyfile config.cache # rm -f acinclude.m4 # rm -rf $(srcdir)/intl/ $(srcdir)/libltdl/ maintainer-clean-local2: distclean-local2: distclean-local: distclean-local2 rm -rf doc clean-local: rm -f code.stats rm -f tags rm -f $(PACKAGE)-$(VERSION)-doc.tar.gz rm -f $(PACKAGE)-$(VERSION).tar.gz rm -f doxygen-stamp rm -f doxygen-latex-stamp bakclean: for f in $$(find -name \*~ -or -name \*.orig -follow); do \ echo "deleting $$f..."; rm -f $$f; done HFILES = $(wildcard $(SUBDIRS:%=$(top_srcdir)/%/*.h)) CFILES = $(wildcard $(SUBDIRS:%=$(top_srcdir)/%/*.c)) SOURCEFILES = $(HFILES) $(CFILES) doxygen-stamp: Doxyfile $(SOURCEFILES) mkdir -p doc doxygen Doxyfile touch doxygen-stamp doxygen-latex-stamp: doxygen-stamp cd $(srcdir)/doc/latex && $(MAKE) touch doxygen-latex-stamp tags: $(SOURCEFILES) ctags $(^) debian-stamp: dpkg-buildpackage -b -nc -uc -rfakeroot # compute per-file line count and total line count approximations code.stats: $(SOURCEFILES) $(top_srcdir)/admin/stats.sh $(SHELL) $(top_srcdir)/admin/stats.sh \ $(top_srcdir)/admin/stats-filter | expand -t 20 | tee code.stats package: dpkg-buildpackage -uc -b -rfakeroot ## vim: ft=make