X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=Makefile;h=b612918640b733a4490924393ae1b64d4165db00;hp=06cf19d4f811f6d407a730fb25d03a4fc4d6c873;hb=8775c998e3144243a87b3a574a1afae087dec54c;hpb=44cde08e6cf148928a219593c78a57abfd89b424 diff --git a/Makefile b/Makefile index 06cf19d..b612918 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,33 @@ -INSTALLDIR = /usr/local/bin -.PHPNY: all clean check install uninstall -all: - make -C src ../casl2 ../comet2 +.PHONY: build check doc doxygen clean gtags htags +DOXYGEN = doxygen +GTAGS = gtags +HTAGS = htags +HTAGSFLAG = --map-file +build: + $(MAKE) -C src + check: - make -C test/astest + @$(MAKE) -sC test/system + +doc: + @$(MAKE) -sC doc + +doxygen: htags + @$(DOXYGEN) + +gtags: + @$(GTAGS) + +htags: gtags + @$(HTAGS) $(HTAGSFLAG) doc/doxygen/html/ + clean: - make -C src clean - make -C test/astest clean - make -C test/utest clean -install: casl2 comet2 - @if test -d $(INSTALLDIR); then \ - install -s ./casl2 $(INSTALLDIR)/casl2; \ - install -s ./comet2 $(INSTALLDIR)/comet2; \ - fi -uninstall: - @if test -d $(INSTALLDIR); then \ - rm -f $(INSTALLDIR)/casl2 $(INSTALLDIR)/comet2; \ - fi + @$(MAKE) -sC src clean + @$(MAKE) -sC test/system/casl2 clean + @$(MAKE) -sC test/system/comet2 clean + @$(MAKE) -sC test/system/dumpword clean + @$(MAKE) -sC test/unit clean + @rm -rf doc/doxygen/* + @rm -f casl2 comet2 dumpword + @rm -f GPATH GRTAGS GSYMS GTAGS + @rm -rf HTML