X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=Makefile;h=2797559a49bb9be168a61fbcae23367453044cb6;hp=06cf19d4f811f6d407a730fb25d03a4fc4d6c873;hb=959c309bcf37cbb534aaa04f27ccfdb6c9453396;hpb=44cde08e6cf148928a219593c78a57abfd89b424 diff --git a/Makefile b/Makefile index 06cf19d..2797559 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,20 @@ -INSTALLDIR = /usr/local/bin +prefix = $(HOME) .PHPNY: all clean check install uninstall all: - make -C src ../casl2 ../comet2 + make -C src check: - make -C test/astest + make -C test/integration 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; \ + 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 $(INSTALLDIR); then \ - rm -f $(INSTALLDIR)/casl2 $(INSTALLDIR)/comet2; \ + @if test -d $(prefix); then \ + rm -f $(prefix)/casl2 $(prefix)/comet2 $(prefix)/dumpword; \ fi