]>
Commit | Line | Data |
---|---|---|
b491ee4e RB |
1 | #!/usr/bin/make |
2 | ||
3 | PKG = tkm-rpc | |
4 | SRC = http://git.codelabs.ch/git/$(PKG).git | |
e601b89c | 5 | REV = 075d22871cf81d497aac656c7f03a513278b641c |
b491ee4e | 6 | |
3db17b0c RB |
7 | PREFIX = /usr/local/ada |
8 | ||
9 | export ADA_PROJECT_PATH=$(PREFIX)/lib/gnat | |
b491ee4e RB |
10 | |
11 | all: install | |
12 | ||
67fd36e8 TB |
13 | .$(PKG)-cloned: |
14 | [ -d $(PKG) ] || git clone $(SRC) $(PKG) | |
15 | @touch $@ | |
93fac61d | 16 | |
67fd36e8 | 17 | .$(PKG)-checkout-$(REV): .$(PKG)-cloned |
93fac61d | 18 | cd $(PKG) && git fetch && git checkout $(REV) |
b491ee4e RB |
19 | @touch $@ |
20 | ||
67fd36e8 | 21 | .$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV) |
9c2aba27 | 22 | cd $(PKG) && make |
b491ee4e RB |
23 | @touch $@ |
24 | ||
93fac61d | 25 | install: .$(PKG)-built-$(REV) |
3db17b0c | 26 | cd $(PKG) && make PREFIX=$(PREFIX) install |