Files
libcoap/doc/Makefile.am
T
Carsten Schoenert a78bd8c876 doc/Makefile.am: respect DESTDIR variable
The old behavior didn't allow a additonal setting of the DESTDIR
variable. This is a serious problem while building within a chroot for
example. Also the implementation of the stamp file was triggering
multiple builds in some cirumstances. This handling is reverted with the
remove of the old stamp file handling.
2015-06-02 20:41:37 +02:00

42 lines
959 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
CLEANFILES = \
doxygen_sqlite3.db
# This target has no check for automated install data! It's simply assumed that
# that the 'all' target is running before, in short: the user has to run first
# 'make' before running 'make install'!
install-data-am:
@if [ ! -d $(srcdir)/html ]; then \
echo ;\
echo " No install data in '$(srcdir)/html'found! Please run 'make all' first." ;\
echo ;\
exit 1 ;\
fi
$(MKDIR_P) $(DESTDIR)$(htmldir)/html || exit 1
cp -a $(srcdir)/html $(DESTDIR)$(htmldir)
uninstall-am:
-rm -rf $(DESTDIR)$(htmldir)/html
all:
$(DOXYGEN) Doxyfile
clean-local:
rm -rf $(srcdir)/html
distclean-local: clean-local
endif # HAVE_DOXYGEN