Generate doxygen doc in doc/doxygen with make

This commit is contained in:
Thomas Bernard
2018-07-12 13:04:29 +02:00
parent 244e856e9f
commit 65564d653f
4 changed files with 33 additions and 7 deletions

View File

@@ -1,4 +1,11 @@
.PHONY: all gifanalyzer sdl_image_test test_iff
DOXYGEN = doxygen
GIT_REVISION = $(shell cat ../src/version.c | cut -f 2 -d '"')
LABEL = $(shell cat ../src/pversion.c | cut -f 2 -d '"')
VERSION = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
SOURCES = $(wildcard ../src/*.c) $(wildcard ../src/*.h)
.PHONY: all gifanalyzer sdl_image_test test_iff doxygen
all: gifanalyzer sdl_image_test test_iff
@@ -10,3 +17,12 @@ sdl_image_test:
test_iff:
$(MAKE) -C $@
doxygen: ../doc/doxygen/html/index.html
../doc/doxygen/html/index.html: Doxyfile $(SOURCES)
$(DOXYGEN)
Doxyfile: ../src/version.c ../src/pversion.c
sed -e 's/^\(PROJECT_NUMBER[ ]*=[ ]*\).*$$/\1 "$(VERSION)"/' $@ > $@.tmp
mv $@.tmp $@