006_tkm-rpc.mk 526 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/make
  2. PKG = tkm-rpc
  3. SRC = http://git.codelabs.ch/git/$(PKG).git
  4. REV = 075d22871cf81d497aac656c7f03a513278b641c
  5. PREFIX = /usr/local/ada
  6. export ADA_PROJECT_PATH=$(PREFIX)/lib/gnat
  7. all: install
  8. .$(PKG)-cloned:
  9. [ -d $(PKG) ] || git clone $(SRC) $(PKG)
  10. @touch $@
  11. .$(PKG)-checkout-$(REV): .$(PKG)-cloned
  12. cd $(PKG) && git fetch && git checkout $(REV)
  13. @touch $@
  14. .$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV)
  15. cd $(PKG) && make
  16. @touch $@
  17. install: .$(PKG)-built-$(REV)
  18. cd $(PKG) && make PREFIX=$(PREFIX) install