Files
strongswan-ext/testing/scripts/recipes/010_tkm.mk
T
2021-11-29 15:06:57 +01:00

25 lines
553 B
Makefile

#!/usr/bin/make
PKG = tkm
SRC = https://git.codelabs.ch/git/$(PKG).git
REV = e46eef9f0991ba2777dcde845c2e00b8df9c72f7
export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
all: install
.$(PKG)-cloned:
[ -d $(PKG) ] || git clone $(SRC) $(PKG)
@touch $@
.$(PKG)-checkout-$(REV): .$(PKG)-cloned
cd $(PKG) && git fetch && git checkout $(REV)
@rm -f .$(PKG)-checkout-* && touch $@
.$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV)
cd $(PKG) && make tests && make
@rm -f .$(PKG)-built-* && touch $@
install: .$(PKG)-built-$(REV)
cd $(PKG) && make install