Changeset 161 in libcf


Ignore:
Timestamp:
11/28/13 23:25:47 (6 years ago)
Author:
cheese
Message:

#1 separate doxygen makefile

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/doxyfile

    r151 r161  
    5353# where doxygen was started. If left blank the current directory will be used.
    5454
    55 OUTPUT_DIRECTORY       = ../Documentation
     55OUTPUT_DIRECTORY       = ../DOCUMENTATION
    5656
    5757# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
  • trunk/makeinclude/platform.mk

    r151 r161  
    77UNAME_V := $(shell uname -v)
    88UNAME_A := $(shell uname -a)
    9 DOXYGEN := $(shell which doxygen)
    10 
    11 DOXYGEN_OUTPUT_PATH = ../Documentation
    12 DOXYGEN_PATH        = ../docs
    13 DOXYGEN_FILE        = $(DOXYGEN_PATH)/doxyfile
    149
    1510#------------------------------------------------------------
  • trunk/src/makefile

    r151 r161  
    3232
    3333INCLUDES        = -I../include
     34DOXYGEN_PATH    = ../docs
    3435
    3536#----------------------------------------------------------
    3637# label
    3738#----------------------------------------------------------
    38 all: $(OBJ_PATH) $(TARGET_PATH) $(TARGET) $(DOXYGEN_OUTPUT_PATH)
     39all: $(OBJ_PATH) $(TARGET_PATH) $(TARGET)
    3940    @echo ========== Complete LIBCF compilation ==========
     41ifeq ($(DOXYGEN_CREATE),yes)
     42    cd $(DOXYGEN_PATH); make all
     43endif
     44
     45# path
    4046$(TARGET_PATH):
    4147    @echo make target path
     
    5662    $(CC) $(CFLAGS) -c $(CDEFS) $(INCLUDES) -o $@ $?
    5763
    58 # doxygen
    59 $(DOXYGEN_OUTPUT_PATH):
    60 ifeq ($(DOXYGEN_CREATE),yes)
    61 ifeq ($(DOXYGEN),)
    62     @echo "doxygen was not found."
    63 else
    64     @echo "========== DOXYGEN DOCUMENTATION =========="
    65     @if [ ! -d $@ ] ; then mkdir $@ ; fi
    66     cd $(DOXYGEN_PATH); $(DOXYGEN) $(DOXYGEN_FILE); cat warning.log;
    67 endif
    68 endif
    69 
    7064clean:
    7165    rm -rf $(TARGET_PATH) $(OBJ_PATH)
    72 ifeq ($(DOXYGEN_CREATE),yes)
    73     rm -rf $(DOXYGEN_OUTPUT_PATH)
    74 endif
     66    cd $(DOXYGEN_PATH); make clean
Note: See TracChangeset for help on using the changeset viewer.