Merge branch 'master' of dragon:/home/dav/yacasl2
[YACASL2.git] / Makefile
1 ifndef prefix
2     prefix = $(HOME)
3 endif
4 CLEANDIR = src test/integration test/unit as/casl2lib
5 .PHONY: all build clean check doc install uninstall
6
7 all: build
8
9 build:
10         make -C src
11
12 check:
13         @make -sC test/integration
14
15 doc:
16         @make -sC doc
17
18 clean:
19         @for target in $(CLEANDIR); do $(MAKE) -sC $$target clean; done; \
20      rm -f casl2 comet2 dumpword
21
22 install: all
23         @if test -d $(prefix); then \
24        install -s ./casl2 $(prefix)/casl2; \
25        install -s ./comet2 $(prefix)/comet2; \
26        install -s ./dumpword $(prefix)/dumpword; \
27      fi
28
29 uninstall:
30         @if test -d $(prefix); then \
31        rm -f $(prefix)/casl2 $(prefix)/comet2 $(prefix)/dumpword; \
32      fi