mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 17:32:54 +03:00
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.
35 lines
658 B
Makefile
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
|