generate tgz of doxygen doc.
This commit is contained in:
parent
324749b9a7
commit
b75ca3e58f
@ -1,7 +1,7 @@
|
|||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq && apt-get install -y -qq libsdl1.2-dev libpng-dev libsdl-ttf2.0-dev libsdl-image1.2-dev liblua5.1-0-dev zip
|
- apt-get update -qq && apt-get install -y -qq libsdl1.2-dev libpng-dev libsdl-ttf2.0-dev libsdl-image1.2-dev liblua5.1-0-dev zip
|
||||||
- apt-get install -y -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
|
- apt-get install -y -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
|
||||||
- apt-get install -y -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools nsis
|
- apt-get install -y -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools nsis doxygen graphviz
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@ -9,8 +9,9 @@ stages:
|
|||||||
job_linux:
|
job_linux:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- "cd src && make && make ziprelease"
|
- "make -j3 && make ziprelease"
|
||||||
- "API=sdl2 make && API=sdl2 make ziprelease"
|
- "API=sdl2 make -j3 && API=sdl2 make ziprelease"
|
||||||
|
- "make docarchive"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "*.zip"
|
- "*.zip"
|
||||||
|
|||||||
8
Makefile
8
Makefile
@ -3,12 +3,15 @@ OPT = WIN32CROSS=1 \
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all tools grafx2 ziprelease 3rdparty win32installer doc doxygen
|
.PHONY: all tools grafx2 ziprelease 3rdparty win32installer \
|
||||||
|
doc doxygen docarchive doxygenarchive
|
||||||
|
|
||||||
all: grafx2 tools
|
all: grafx2 tools
|
||||||
|
|
||||||
doc: doxygen
|
doc: doxygen
|
||||||
|
|
||||||
|
docarchive: doxygenarchive
|
||||||
|
|
||||||
grafx2:
|
grafx2:
|
||||||
$(OPT)$(MAKE) -C src/
|
$(OPT)$(MAKE) -C src/
|
||||||
|
|
||||||
@ -26,3 +29,6 @@ win32installer:
|
|||||||
|
|
||||||
doxygen:
|
doxygen:
|
||||||
$(MAKE) -C tools/ doxygen
|
$(MAKE) -C tools/ doxygen
|
||||||
|
|
||||||
|
doxygenarchive:
|
||||||
|
$(MAKE) -C tools/ doxygenarchive
|
||||||
|
|||||||
@ -1,10 +1,14 @@
|
|||||||
DOXYGEN = doxygen
|
DOXYGEN = doxygen
|
||||||
|
TAR = tar
|
||||||
|
|
||||||
GIT_REVISION = $(shell cat ../src/version.c | cut -f 2 -d '"')
|
GIT_REVISION = $(shell cat ../src/version.c | cut -f 2 -d '"')
|
||||||
LABEL = $(shell cat ../src/pversion.c | cut -f 2 -d '"')
|
LABEL = $(shell cat ../src/pversion.c | cut -f 2 -d '"')
|
||||||
VERSION = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
|
VERSION = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
|
||||||
|
|
||||||
SOURCES = $(wildcard ../src/*.c) $(wildcard ../src/*.h)
|
SOURCES = $(wildcard ../src/*.c) $(wildcard ../src/*.h)
|
||||||
|
|
||||||
|
DOCARCHIVE = ../grafx2-$(VERSION)-doxygen.tgz
|
||||||
|
|
||||||
.PHONY: all gifanalyzer sdl_image_test test_iff doxygen
|
.PHONY: all gifanalyzer sdl_image_test test_iff doxygen
|
||||||
|
|
||||||
all: gifanalyzer sdl_image_test test_iff
|
all: gifanalyzer sdl_image_test test_iff
|
||||||
@ -18,6 +22,11 @@ sdl_image_test:
|
|||||||
test_iff:
|
test_iff:
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
|
doxygenarchive: $(DOCARCHIVE)
|
||||||
|
|
||||||
|
$(DOCARCHIVE): ../doc/doxygen/html/index.html
|
||||||
|
cd ../doc && $(TAR) czf $@ doxygen/
|
||||||
|
|
||||||
doxygen: ../doc/doxygen/html/index.html
|
doxygen: ../doc/doxygen/html/index.html
|
||||||
|
|
||||||
../doc/doxygen/html/index.html: Doxyfile $(SOURCES)
|
../doc/doxygen/html/index.html: Doxyfile $(SOURCES)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user