generate tgz of doxygen doc.

This commit is contained in:
Thomas Bernard
2018-07-12 14:13:46 +02:00
parent 324749b9a7
commit b75ca3e58f
3 changed files with 20 additions and 4 deletions

View File

@@ -1,10 +1,14 @@
DOXYGEN = doxygen
TAR = tar
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)
DOCARCHIVE = ../grafx2-$(VERSION)-doxygen.tgz
.PHONY: all gifanalyzer sdl_image_test test_iff doxygen
all: gifanalyzer sdl_image_test test_iff
@@ -18,6 +22,11 @@ sdl_image_test:
test_iff:
$(MAKE) -C $@
doxygenarchive: $(DOCARCHIVE)
$(DOCARCHIVE): ../doc/doxygen/html/index.html
cd ../doc && $(TAR) czf $@ doxygen/
doxygen: ../doc/doxygen/html/index.html
../doc/doxygen/html/index.html: Doxyfile $(SOURCES)