Generate doxygen doc in doc/doxygen with make
This commit is contained in:
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user