Files
libcoap/doc/Makefile.am
T
Carsten Schoenert b1ed21e458 doc/Makefile.am: fix up broken 'make dist'
The make target for creating the distribution tarball (make dist) was
broken some commits ago within the changes in the doc/ subdirectory. The
reason for this is that simple Doxygen has to be runs ones before the
automatism can pick up the files. automake uses dist_pkgdist_DATA as
trigger. So we have to use that variable.

Changing up the makefile template so the call for 'dist_pkgdist_DATA'
*and* 'all-local' is calling 'doxfile.stamp' so fist Doxygen is running.

By doing this also clean up a little bit and prepare the build for be
able to run out of the tree.
2015-03-22 14:35:13 +01:00

35 lines
658 B
Makefile

# doc/Makefile.am
#
# Copyright (C) 2015 Carsten Schoenert <c.schoenert@t-online.de>
#
# This file is part of the CoAP C library libcoap. Please see README and
# COPYING for terms of use.
# We can only perfom the targets in this directory if doxygen is present.
if HAVE_DOXYGEN
dist_pkgdata_DATA = doxyfile.stamp
CLEANFILES = \
doxyfile.stamp \
doxygen_sqlite3.db
doxyfile.stamp:
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
all-local: doxyfile.stamp
clean-local:
rm -rf $(srcdir)/html
install-data-am: all-local
$(MKDIR_P) $(htmldir)/html || exit 1
cp -a $(srcdir)/html $(htmldir)
.PHONY: doxyfile.stamp
endif # HAVE_DOXYGEN