Added automake logic for building the Doxygen sources right before preparing a

release tarball.
This commit is contained in:
John Wiegley 2008-08-05 20:59:46 -04:00
parent 9f9339c5c5
commit d29d7751e0
2 changed files with 51 additions and 18 deletions

1
.gitignore vendored
View file

@ -83,6 +83,7 @@ elc-stamp
elisp-comp
install-sh
ledger
ledger-*/
ledger.info
libtool
ltmain.sh

View file

@ -1,6 +1,6 @@
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST = LICENSE NEWS README test contrib doc python
EXTRA_DIST = LICENSE NEWS README test contrib
# Files that are still only in the Ledger source tree (g200d919):
#
@ -18,10 +18,6 @@ EXTRA_DIST = LICENSE NEWS README test contrib doc python
# pyutils.h
# tuples.hpp
ESC_srcdir=`echo "$(srcdir)" | sed 's/\//\\\\\//g'`
ESC_builddir=`echo "$(top_builddir)" | sed 's/\//\\\\\//g'`
ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
lib_LTLIBRARIES = libamounts.la libledger.la
libamounts_la_CPPFLAGS = -I$(srcdir)/src
@ -155,16 +151,18 @@ pkginclude_HEADERS = \
src/ledger.h
if USE_PCH
nodist_libledger_la_SOURCES = src/system.hh.gch
BUILT_SOURCES += src/system.hh.gch
CLEANFILES += src/system.hh.gch
CLEANFILES += src/system.hh.gch
$(srcdir)/src/system.hh.gch: $(srcdir)/src/system.hh $(top_builddir)/acconf.h
$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(libledger_la_CPPFLAGS) \
$(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \
-g -o $@ $(srcdir)/src/system.hh
endif
######################################################################
@ -184,6 +182,8 @@ DISTCLEANFILES = ledger.elc timeclock.elc
######################################################################
EXTRA_DIST += python
if HAVE_BOOST_PYTHON
noinst_PROGRAMS = amounts.so
@ -191,9 +191,6 @@ nodist_amounts_so_SOURCES = amounts.c
CLEANFILES += amounts.so
clean-local:
rm -fr build
PYLIBS = amounts gmp
amounts.so: python/amounts.cc libamounts.la
@ -221,12 +218,12 @@ check_PROGRAMS = $(TESTS)
nodist_UnitTests_SOURCES = test/UnitTests.cc \
\
test/utility/t_utils.cc \
test/utility/t_times.cc \
test/numerics/t_commodity.cc \
test/numerics/t_amount.cc \
test/numerics/t_balance.cc \
test/numerics/t_expr.cc
test/unit/t_utils.cc \
test/unit/t_times.cc \
test/unit/t_commodity.cc \
test/unit/t_amount.cc \
test/unit/t_balance.cc \
test/unit/t_expr.cc
UnitTests_CPPFLAGS = -I$(srcdir)/test $(libledger_la_CPPFLAGS)
UnitTests_LDFLAGS = $(LIBADD_DL)
@ -234,6 +231,10 @@ UnitTests_LDADD = $(lib_LTLIBRARIES) -lcppunit
nodist_PyUnitTests_SOURCES = python/test/PyUnitTests.py
ESC_srcdir=`echo "$(srcdir)" | sed 's/\//\\\\\//g'`
ESC_builddir=`echo "$(top_builddir)" | sed 's/\//\\\\\//g'`
ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
# jww (2007-05-10): This rule will not be triggered on systems that
# define an EXEEXT.
PyUnitTests: $(srcdir)/python/test/PyUnitTests.py
@ -245,9 +246,11 @@ PyUnitTests: $(srcdir)/python/test/PyUnitTests.py
RegressionTests_SOURCES = test/regress.py
RegressionTests: $(srcdir)/test/regress.py
echo "python $(srcdir)/test/regress.py $(top_builddir)/ledger$(EXEEXT) $(srcdir)/test/regress" > $@
echo "exit 1" > $@
chmod 755 $@
# echo "python $(srcdir)/test/regress.py $(top_builddir)/ledger$(EXEEXT) $(srcdir)/test/regress" > $@
fullcheck: check
MallocGuardEdges=1 \
MallocScribble=1 \
@ -259,9 +262,13 @@ fullcheck: check
######################################################################
DISTCLEANFILES += Doxyfile.gen
DISTCLEANFILES += doc/ledger.info doc/ledger.pdf \
doc/Doxyfile.gen doc/refman.pdf
alldocs: doc/ledger.info doc/ledger.pdf doxygen-docs
EXTRA_DIST += doc/ledger.pdf doc/html doc/refman.pdf
distclean-local:
rm -fr doc/html doc/latex
$(top_builddir)/Doxyfile.gen: $(srcdir)/doc/Doxyfile
cat $(srcdir)/doc/Doxyfile \
@ -271,4 +278,29 @@ $(top_builddir)/Doxyfile.gen: $(srcdir)/doc/Doxyfile
doxygen: $(top_builddir)/Doxyfile.gen
doxygen $(top_builddir)/Doxyfile.gen
# The intention with the following rules is that all of the Doxygen
# documentation (both HTML and PDF) is built locally before distcheck is
# run, since it's quite possible that the user will not have a complete
# TeX + Doxygen + dot environment on their own system.
$(top_builddir)/doc/refman.pdf: doxygen
(cd $(srcdir)/doc/latex && make)
cp $(srcdir)/doc/latex/refman.pdf $@
install-data-local:
$(MKDIR_P) $(DESTDIR)$(datadir)/$(PACKAGE)/doc/html
$(INSTALL_DATA) $(top_builddir)/doc/html/* \
$(DESTDIR)$(datadir)/$(PACKAGE)/doc/html
uninstall-local:
rm -fr $(DESTDIR)$(datadir)/$(PACKAGE)/doc/html/
release:
(cd /usr/local/stow; sudo stow -D cppunit) # switch to /opt version
make distcheck \
CPPFLAGS="-I/usr/local/include -I/usr/local/include/boost-1_35 -I/opt/local/include " \
CXXFLAGS="-Wall -ansi -Wextra" \
LDFLAGS="-L/usr/local/lib -L/opt/local/lib"
(cd /usr/local/stow; sudo stow cppunit) # switch back to debug version
# Makefile.am ends here