From: j8takagi Date: Mon, 4 Feb 2013 02:38:07 +0000 (+0900) Subject: cmetrics出力機能追加 X-Git-Tag: v0.2p9~6 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92b849ad9e1e22208ecd33db01728c85c8f9be88;p=YACASL2.git cmetrics出力機能追加 --- diff --git a/doc_inner/.gitignore b/doc_inner/.gitignore index 399a9e5..546914e 100644 --- a/doc_inner/.gitignore +++ b/doc_inner/.gitignore @@ -1,2 +1,3 @@ doxygen gnu_global +cmetrics diff --git a/doc_inner/Makefile b/doc_inner/Makefile index 871aea5..289b214 100644 --- a/doc_inner/Makefile +++ b/doc_inner/Makefile @@ -1,9 +1,11 @@ .PHONY: all clean doxygen-clean gnu_global-clean CD := cd +CMETRICS := cmetrics DOXYGEN := doxygen ECHO := echo HTAGS := htags +INSTALL := install MAKE := make MV := mv RMRF := rm -rf @@ -11,8 +13,9 @@ WHICH := which DOXYGEN_DIR := doxygen GNU_GLOBAL_DIR := gnu_global +CMETRICS_DIR := cmetrics -all: $(DOXYGEN_DIR) $(GNU_GLOBAL_DIR) +all: $(DOXYGEN_DIR) $(GNU_GLOBAL_DIR) $(CMETRICS_DIR) # doxygenのHTMLドキュメント作成先は、 # ../Doxyfileで設定された以下のディレクトリーの下のhtmlディレクトリー @@ -26,6 +29,11 @@ $(GNU_GLOBAL_DIR): $(MAKE) -C .. gtags $(if $(strip $(shell $(WHICH) $(HTAGS))),$(CD) .. && $(HTAGS) -anosx $(CURDIR) && $(MV) $(CURDIR)/HTML $(CURDIR)/$@,@$(ECHO) '$(HTAGS): not found') +$(CMETRICS_DIR): + $(INSTALL) -d $(CMETRICS_DIR) + $(CMETRICS) ../src | sed -e 's/ */\t/g' >$(CMETRICS_DIR)/files.tsv + $(CMETRICS) -f ../src | sed -e 's/ */\t/g' >$(CMETRICS_DIR)/functions.tsv + clean: doxygen-clean gnu_global-clean doxygen-clean: @@ -33,3 +41,6 @@ doxygen-clean: gnu_global-clean: @$(RMRF) $(GNU_GLOBAL_DIR) + +cmetrics-clean: + @$(RMRF) $(CMETRICS_DIR)