010_tkm.mk 485 B

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