GTAGSファイルの作成方法などを変更
authorj8takagi <j8takagi@nifty.com>
Tue, 26 Apr 2011 15:14:03 +0000 (00:14 +0900)
committerj8takagi <j8takagi@nifty.com>
Tue, 26 Apr 2011 15:14:03 +0000 (00:14 +0900)
Makefile

index 2d5129c..01f60a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: build check doc doxygen clean gtags htags
+.PHONY: build check doc doxygen clean gtags htags clean_htags
 MKDIR = mkdir -p
 MV = mv
 DOXYGEN = doxygen
@@ -6,6 +6,8 @@ GTAGS = gtags
 HTAGS = htags
 HTAGSFLAG = -anosx
 
+all: build gtags
+
 build:
        $(MAKE) -C src
 
@@ -18,28 +20,29 @@ doc:
 doxygen: doc_inner
        @$(DOXYGEN)
 
-gtags:
+gtags: clean_gtags
        @$(GTAGS)
 
-htags: doc_inner gtags
-       @rm -rf $</htags
-       @$(HTAGS) $(HTAGSFLAG) $</
+htags: doc_inner
+       @$(MAKE) clean_htags
+       @$(MAKE) gtags
+       @$(HTAGS) $(HTAGSFLAG) $<
        @$(MV) $</HTML $</htags
 
 doc_inner:
        @$(MKDIR) $@
 
-clean: clean_cmd clean_src clean_gtags clean_systemtest clean_unittest clean_doc_inner clean_doc
+clean: clean_cmd clean_src clean_gtags clean_systemtest clean_unittest clean_doc clean_doc_inner
 
 clean_cmd:
        @rm -f casl2 comet2 dumpword
 
-clean_gtags:
-       @rm -f GPATH GRTAGS GSYMS GTAGS
-
 clean_src:
        @$(MAKE) -sC src clean
 
+clean_gtags:
+       @rm -f GPATH GRTAGS GSYMS GTAGS
+
 clean_systemtest:
        @$(MAKE) -sC test/system/casl2 clean
        @$(MAKE) -sC test/system/comet2 clean
@@ -48,8 +51,14 @@ clean_systemtest:
 clean_unittest:
        @$(MAKE) -sC test/unit clean
 
+clean_doc:
+       @$(MAKE) -sC doc clean
+
 clean_doc_inner:
        @rm -rf doc_inner
 
-clean_doc:
-       @$(MAKE) -sC doc clean
+clean_htags:
+       @rm -rf doc_inner/htags
+
+clean_doxygen:
+       @rm -rf doc_inner/doxygen