summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2019-10-10 22:11:14 +0200
committerJoachim Nilsson <troglobit@gmail.com>2019-10-10 22:13:25 +0200
commit38c72db5fcfc9b9b71059a55363fc5b1d18f015d (patch)
treec1e482bb4ed6028a3be3fa588133fe21f7c23e67
parent736f096f8eee75fd46f0aba20074535dec5ba6e3 (diff)
downloadlibnet-38c72db5fcfc9b9b71059a55363fc5b1d18f015d.tar.gz
Only include doc: and dist-hook: target when Doxygen is enabled
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r--Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index b515796..1722aee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,13 +13,13 @@ dist_doc_DATA = README.md ChangeLog.md LICENSE
EXTRA_DIST = README.win32 autogen.sh libnet-config.in
SUBDIRS = include src win32
-if ENABLE_DOXYGEN
-SUBDIRS += doc
-endif
if ENABLE_SAMPLES
SUBDIRS += sample
endif
+if ENABLE_DOXYGEN
+SUBDIRS += doc
+
#
# Doxygen rules from m4/ax_prog_doxygen.m4
#
@@ -28,9 +28,9 @@ endif
doc: doxygen-doc
$(AM_V_GEN)cd $(DX_DOCDIR) && ./fixmanpages && cd -
-
## The distribution should include man pages, which are generated
dist-hook: doc
+endif
## Generate MD5 checksum file
MD5 = md5sum