doxygen: fix rebuild when not necessary

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@videotron.ca>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Gaetan Nadon 2013-11-24 08:02:30 -05:00 committed by Peter Hutterer
parent ebb70f42dc
commit dd016ebc3f

View file

@ -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