007_x509-ada.mk 497 B

123456789101112131415161718192021222324
  1. #!/usr/bin/make
  2. PKG = x509-ada
  3. SRC = http://git.codelabs.ch/git/$(PKG).git
  4. REV = caeea59c945945afd7dc092b37c85a9fef73a395
  5. PREFIX = /usr/local/ada
  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 tests && make
  15. @touch $@
  16. install: .$(PKG)-built-$(REV)
  17. cd $(PKG) && make PREFIX=$(PREFIX) install