005_anet.mk 519 B

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