[PATCH libevdev 06/10] doxygen: fix rebuild when not necessary

Gaetan Nadon memsize at videotron.ca
Sun Nov 24 05:02:30 PST 2013


Everytime make is invoked, doxygen is invoked to generate the html doc.

Dependencies are added so it does rebuild when necessary.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 doc/Makefile.am |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index ecc2c61..2220eb7 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,16 +1,20 @@
 if HAVE_DOXYGEN
-all-local: doxygen
 
-doxygen: libevdev.doxygen
+noinst_DATA = html/index.html
+
+header_files = \
+	$(top_srcdir)/libevdev/libevdev.h \
+	$(top_srcdir)/libevdev/libevdev-uinput.h
+
+html/index.html: libevdev.doxygen $(header_files)
 	$(AM_V_GEN)$(DOXYGEN) $<
 
 clean-local:
 	$(AM_V_at)rm -rf html
 
-.PHONY: doxygen
-
 doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null)
 EXTRA_DIST = $(doc_src) libevdev.css
+
 endif
 
 # make sure doc was built before running dist
-- 
1.7.9.5



More information about the Input-tools mailing list