X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=Makefile;h=2d5129c70f7cf5712aacf57a06b649870700a4e4;hp=2797559a49bb9be168a61fbcae23367453044cb6;hb=71c7607d809b725d66ef21471041e2677c71be4e;hpb=fb54b1c9d2fbc3d4a62c6b4d38ff68e9d3b25c26 diff --git a/Makefile b/Makefile index 2797559..2d5129c 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,55 @@ -prefix = $(HOME) -.PHPNY: all clean check install uninstall -all: - make -C src +.PHONY: build check doc doxygen clean gtags htags +MKDIR = mkdir -p +MV = mv +DOXYGEN = doxygen +GTAGS = gtags +HTAGS = htags +HTAGSFLAG = -anosx + +build: + $(MAKE) -C src + check: - make -C test/integration -clean: - make -C src clean - make -C test/integration clean - make -C test/unit clean -install: all - @if test -d $(prefix); then \ - install -s ./casl2 $(prefix)/casl2; \ - install -s ./comet2 $(prefix)/comet2; \ - install -s ./dumpword $(prefix)/dumpword; \ - fi -uninstall: - @if test -d $(prefix); then \ - rm -f $(prefix)/casl2 $(prefix)/comet2 $(prefix)/dumpword; \ - fi + @$(MAKE) -sC test/system + +doc: + @$(MAKE) -sC doc + +doxygen: doc_inner + @$(DOXYGEN) + +gtags: + @$(GTAGS) + +htags: doc_inner gtags + @rm -rf $