ECHO := echo
HTAGS := htags
INSTALL := install
-MAKE := make
MV := mv
RMR := rm -rf
SED := sed
CMETRICS_DIR := cmetrics
CMETRICS_SRCDIR := ../src
-# chk_file_ext: æ\8c\87å®\9aã\81\95ã\82\8cã\81\9fã\83\95ã\82¡ã\82¤ã\83«ã\81\8cå®\9få\9c¨ã\81\99ã\82\8bå ´å\90\88ã\80\81ã\82¨ã\83©ã\83¼
+# chk_file_ext: æ\8c\87å®\9aã\81\95ã\82\8cã\81\9fã\82³ã\83\9eã\83³ã\83\89ã\81\8cå®\9få\9c¨ã\81\99ã\82\8bå ´å\90\88ã\81«ã\82¿ã\83¼ã\82²ã\83\83ã\83\88ã\82\92æ\8c\87å®\9aã\80\82
# 用例: $(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))