projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gtagsがない場合に発生するエラーを回避
[YACASL2.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2d5129c
..
a84983c
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
MKDIR = mkdir -p
MV = mv
DOXYGEN = doxygen
@@
-6,6
+6,8
@@
GTAGS = gtags
HTAGS = htags
HTAGSFLAG = -anosx
HTAGS = htags
HTAGSFLAG = -anosx
+all: build gtags
+
build:
$(MAKE) -C src
build:
$(MAKE) -C src
@@
-18,28
+20,29
@@
doc:
doxygen: doc_inner
@$(DOXYGEN)
doxygen: doc_inner
@$(DOXYGEN)
-gtags:
- @
$(GTAGS)
+gtags:
clean_gtags
+ @
if test `which $(GTAGS)`; then $(GTAGS); fi
-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) $@
@$(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_cmd:
@rm -f casl2 comet2 dumpword
-clean_gtags:
- @rm -f GPATH GRTAGS GSYMS GTAGS
-
clean_src:
@$(MAKE) -sC src clean
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
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_unittest:
@$(MAKE) -sC test/unit clean
+clean_doc:
+ @$(MAKE) -sC doc clean
+
clean_doc_inner:
@rm -rf doc_inner
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