X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=doc_inner%2FMakefile;h=0fb2fd92eb9d502cccbef0c4435f4cba5baafa1a;hp=68af59b4af0f544843bbeb4e4276c0c150b36707;hb=7fbde1700bbe9d8f779033ad3b842d3dceb3e1c6;hpb=e3db66c5d6baaf298b8449aaff25478b9814d246 diff --git a/doc_inner/Makefile b/doc_inner/Makefile index 68af59b..0fb2fd9 100644 --- a/doc_inner/Makefile +++ b/doc_inner/Makefile @@ -7,7 +7,6 @@ DOXYGEN := doxygen ECHO := echo HTAGS := htags INSTALL := install -MAKE := make MV := mv RMR := rm -rf SED := sed @@ -20,10 +19,10 @@ GNU_GLOBAL_SRCDIR := .. CMETRICS_DIR := cmetrics CMETRICS_SRCDIR := ../src -# chk_file_ext: 指定されたファイルが実在する場合、エラー +# chk_file_ext: 指定されたコマンドが実在する場合にターゲットを指定。 # 用例: $(call chk_cmd_ext,cmd,target) define chk_cmd_ext - $(if $(strip $(shell $(WHICH) $1)),$2,,@$(ECHO) '$1: not found') + $(if $(strip $(shell $(WHICH) $1)),$2) endef all: $(call chk_cmd_ext,$(DOXYGEN),$(DOXYGEN_DIR)) $(call chk_cmd_ext,$(HTAGS),$(GNU_GLOBAL_DIR)) $(call chk_cmd_ext $(CMETRICS),$(CMETRICS_DIR)) @@ -46,11 +45,13 @@ $(GNU_GLOBAL_DIR): ../src ../include $(CMETRICS_DIR): $(INSTALL) -d $(CMETRICS_DIR) - $(CMETRICS) $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/\t/g' -e '2,$$s/ \{1,\}/\t/g' >$(CMETRICS_DIR)/files.tsv - $(CMETRICS) -f $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/\t/g' -e '2,$$s/ \{1,\}/\t/g' >$(CMETRICS_DIR)/functions.tsv + $(CMETRICS) $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/files.tsv + $(CMETRICS) -f $(CMETRICS_SRCDIR) | $(SED) -e '1s/ \{2,\}/ /g' -e '2,$$s/ \{1,\}/ /g' >$(CMETRICS_DIR)/functions.tsv clean: doxygen-clean gnu_global-clean cmetrics-clean +distclean: clean + doxygen-clean: $(RMR) $(DOXYGEN_DIR) $(RM) ../Doxyfile