エラーをリストで格納し、分散して追加するように修正
[YACASL2.git] / Makefile
1 ifndef prefix
2     prefix = $(HOME)
3 endif
4 CLEANDIR = src test/integration test/unit as/casl2lib
5 .PHPNY: all build clean check doc casl2lib install uninstall
6 all: build casl2lib
7 build:
8         make -C src
9 casl2lib:
10         @make -C as/casl2lib
11 check:
12         @make -sC test/integration
13 doc:
14         @make -sC doc
15 clean:
16         @for target in $(CLEANDIR); do $(MAKE) -sC $$target clean; done; \
17      rm -f casl2 comet2 dumpword
18 install: all
19         @if test -d $(prefix); then \
20        install -s ./casl2 $(prefix)/casl2; \
21        install -s ./comet2 $(prefix)/comet2; \
22        install -s ./dumpword $(prefix)/dumpword; \
23      fi
24 uninstall:
25         @if test -d $(prefix); then \
26        rm -f $(prefix)/casl2 $(prefix)/comet2 $(prefix)/dumpword; \
27      fi