doxygen.mk: Add file

This commit is contained in:
Jan Lindemann 2009-05-28 16:53:35 +00:00 committed by Jan Lindemann
commit c053f9737f

50
make/doxygen.mk Normal file
View file

@ -0,0 +1,50 @@
include $(MODDIR)/make/defs.mk
# broken by IMAGEDIR in rpmbuild
ifneq ($(DEVELOPMENT),true)
include $(MODDIR)/make/dummy.mk
else
UPLOAD_URL ?= $(UPLOAD_URL_DEVEL_DOC)/$(PROJECT)
all:
install:
distclean: clean
clean: clean.doxygen
doc: all
upload: upload.done
html: doxygen.done cpfiles.done
DOC_FILES = \
$(IMAGEDIR)/jannet_08.png
%: %.tmpl
cat $< \
| sed "s/__VERSION__/$(VERSION)/" \
| sed "s/__PROJECT__/$(PROJECT)/" \
| sed "s/__PROJECT_CAPNAME__/$(PROJECT_CAPNAME)/" \
> $@
doxygen.done: doxygen.conf
doxygen doxygen.conf
touch $@
cpfiles.done: doxygen.done $(DOC_FILES)
cp $(DOC_FILES) html
touch $@
doc.done: doxygen.done cpfiles.done
touch $@
view: doc.done
konqueror html/index.html
upload.done: doxygen.done cpfiles.done
upload.sh html $(UPLOAD_URL)
clean.doxygen:
rm -rf html *.done doxygen.conf
endif