# # Copyright (C) 2003, 2004 Bojan Smojver, Rexursive # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free # Software Foundation; either version 2 of the Licence, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for # more details. # # You should have received a copy of the GNU General Public Licence along # with this program; if not, write to the Free Software Foundation, Inc., 59 # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ACLOCAL_AMFLAGS=-I m4 EXTRA_DIST=buildconf \ spin/rxv_spin.h \ spin/parser.y spin/parser.h \ spin/scanner.l spin/scanner.h \ spin/config.m4 \ spin/eatdoxygen.c \ tests/comprehensive.sm tests/create-spintest.sql \ docs \ mod_spin.spec doxygen.conf spin.conf SUBDIRS=spin # Configuration script bin_SCRIPTS = rxv_spin-config CLEANFILES = $(bin_SCRIPTS) # Some more data that want to build noinst_DATA=mod_spin.spec doxygen.conf # Documentation doc_DATA=README INSTALL COPYING NEWS ChangeLog # Manual pages man_MANS=docs/man/man3/rxv_spin_as_functions.3 \ docs/man/man3/rxv_spin_conn.3 \ docs/man/man3/rxv_spin_connection_functions.3 \ docs/man/man3/rxv_spin_context.3 \ docs/man/man3/rxv_spin_context_functions.3 \ docs/man/man3/rxv_spin_cpool.3 \ docs/man/man3/rxv_spin_data.3 \ docs/man/man3/rxv_spin_database_functions.3 \ docs/man/man3/rxv_spin_data_functions.3 \ docs/man/man3/rxv_spin_db_result.3 \ docs/man/man3/rxv_spin_service_function.3 \ docs/man/man3/rxv_spin.h.3 # This should build all documentation docs/man/man3/rxv_spin_as_functions.3: docs tags/apr.tag: -mkdir tags cp $(TAG_FILES_LOCATION)/apr.tag tags || \ (echo '' > $@; touch -r spin $@) tags/apu.tag: -mkdir tags cp $(TAG_FILES_LOCATION)/apu.tag tags || \ (echo '' > $@; touch -r spin $@) tags/apreq2.tag: -mkdir tags cp $(TAG_FILES_LOCATION)/apreq2.tag tags || \ (echo '' > $@; touch -r spin $@) tags-clean: rm -f tags/* docs: spin/rxv_spin.h README INSTALL COPYING NEWS doxygen.conf \ tags/apr.tag tags/apu.tag tags/apreq2.tag doxygen doxygen.conf && touch docs sed -e s/'-family: Geneva'/'-family: Bitstream Vera Sans, Geneva'/g \ -e s/'-family: Fixed'/'-family: Bitstream Vera Sans Mono, Fixed'/g \ docs/html/doxygen.css > docs/html/doxygen.css.fixed mv -f docs/html/doxygen.css.fixed docs/html/doxygen.css make -C docs/latex cp docs/latex/refman.pdf docs/mod_spin.pdf docs-clean: rm -rf docs tags # Full directories have to be installed separately install-data-local: $(mkinstalldirs) $(DESTDIR)$(docdir)/html $(INSTALL_DATA) docs/mod_spin.pdf $(DESTDIR)$(docdir) $(INSTALL_DATA) docs/*.tag $(DESTDIR)$(docdir) $(INSTALL_DATA) docs/html/*.{html,css,png} $(DESTDIR)$(docdir)/html $(INSTALL_SCRIPT) docs/html/installdox $(DESTDIR)$(docdir)/html $(mkinstalldirs) $(DESTDIR)$(aclocaldir) test "`tail -n 1 $(DESTDIR)$(aclocaldir)/mod_spin.m4`" = 'dnl PACKAGE' || \ $(INSTALL_DATA) m4/mod_spin.m4 $(DESTDIR)$(aclocaldir) || true if PACKAGERBUILD install-data-hook: test "`tail -n 1 $(DESTDIR)$(aclocaldir)/mod_spin.m4`" = 'dnl PACKAGE' || \ echo 'dnl PACKAGE' >> $(DESTDIR)$(aclocaldir)/mod_spin.m4 else install-data-hook: endif uninstall-local: rm -rf $(DESTDIR)$(docdir)/docs test "`tail -n 1 $(DESTDIR)$(aclocaldir)/mod_spin.m4`" = 'dnl PACKAGE' || \ rm -f $(DESTDIR)$(aclocaldir)/mod_spin.m4 || true uninstall-hook: rmdir $(DESTDIR)$(docdir) || true # Clean up unnecessary stuff from docs directory before distribution dist-hook: rm -rf $(distdir)/docs/latex