mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-18 13:39:05 +03:00
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.
This commit is contained in:
1 parent
da3570cb41
commit
b1ed21e458
1 file changed
+10
-9
+10
-9
@@ -9,25 +9,26 @@
|
||||
# We can only perfom the targets in this directory if doxygen is present.
|
||||
|
||||
if HAVE_DOXYGEN
|
||||
directory = $(builddir)/html
|
||||
|
||||
dist_man_MANS = $(directory)/html
|
||||
$(directory)/html: doxyfile.stamp
|
||||
$(directory): doxyfile.stamp
|
||||
dist_pkgdata_DATA = doxyfile.stamp
|
||||
|
||||
CLEANFILES = \
|
||||
doxyfile.stamp \
|
||||
doxygen_sqlite3.db
|
||||
|
||||
doxyfile.stamp:
|
||||
$(DOXYGEN) Doxyfile
|
||||
echo Timestamp > doxyfile.stamp
|
||||
|
||||
CLEANFILES = doxyfile.stamp doxygen_sqlite3.db
|
||||
|
||||
all-local: doxyfile.stamp
|
||||
|
||||
clean-local:
|
||||
rm -rf $(directory)
|
||||
rm -rf $(srcdir)/html
|
||||
|
||||
install-exec-am: all-local
|
||||
install-data-am: all-local
|
||||
$(MKDIR_P) $(htmldir)/html || exit 1
|
||||
cp -a $(directory) $(htmldir)
|
||||
cp -a $(srcdir)/html $(htmldir)
|
||||
|
||||
.PHONY: doxyfile.stamp
|
||||
|
||||
endif # HAVE_DOXYGEN
|
||||
Reference in new issue
Block a user