source: libcf/trunk/docs/makefile@ 161

Last change on this file since 161 was 161, checked in by cheese, 10 years ago

#1 separate doxygen makefile

File size: 978 bytes
Line 
1#----------------------------------------------------------
2# platform
3#----------------------------------------------------------
4include ../makeinclude/userdefine.mk
5include ../makeinclude/platform.mk
6
7#----------------------------------------------------------
8# env
9#----------------------------------------------------------
10DOXYGEN := $(shell which doxygen)
11
12DOXYGEN_OUTPUT_PATH = ../DOCUMENTATION
13DOXYGEN_FILE = doxyfile
14
15#----------------------------------------------------------
16# label
17#----------------------------------------------------------
18all: $(DOXYGEN_OUTPUT_PATH)
19 @echo ========== Complete LIBCF compilation ==========
20
21$(DOXYGEN_OUTPUT_PATH):
22ifeq ($(DOXYGEN_CREATE),yes)
23ifeq ($(DOXYGEN),)
24 @echo "doxygen was not found."
25else
26 @echo "========== DOXYGEN DOCUMENTATION =========="
27 @if [ ! -d $@ ] ; then mkdir $@ ; fi
28 $(DOXYGEN) $(DOXYGEN_FILE); cat warning.log;
29endif
30endif
31
32clean:
33ifeq ($(DOXYGEN_CREATE),yes)
34 rm -rf $(DOXYGEN_OUTPUT_PATH)
35endif
Note: See TracBrowser for help on using the repository browser.