From: j8takagi Date: Sun, 14 Jul 2013 02:13:04 +0000 (+0900) Subject: Makefileの推敲 X-Git-Tag: v0.2p10~3 X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=commitdiff_plain;h=e41f2dc671c87d4f78c59056f1f55af566fcc2cb Makefileの推敲 --- diff --git a/doc_inner/Makefile b/doc_inner/Makefile index 68af59b..7fb6b18 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))