aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/recipes/008_xfrm-ada.mk
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-10-07 10:47:06 +0200
committerTobias Brunner <tobias@strongswan.org>2014-10-07 10:47:06 +0200
commit93fac61da535d9329e37567cc8d07bd5305020a5 (patch)
treea81bef98d6cfb59e28ecf5223ac2651e6d4d62f6 /testing/scripts/recipes/008_xfrm-ada.mk
parentf83215bbdb2e363f733594dbaca639b86a4fd59a (diff)
downloadstrongswan-93fac61da535d9329e37567cc8d07bd5305020a5.tar.bz2
strongswan-93fac61da535d9329e37567cc8d07bd5305020a5.tar.xz
testing: Make TKM related build recipes future-proof
The tkm scenarios recently failed due to a segmentation fault on my host because I had an old build of the tkm library already built in the build directory. Because the stamp file was not versioned the new release was never checked out or built and charon-tkm was linked against the old version causing a segmentation fault during key derivation.
Diffstat (limited to 'testing/scripts/recipes/008_xfrm-ada.mk')
-rw-r--r--testing/scripts/recipes/008_xfrm-ada.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/scripts/recipes/008_xfrm-ada.mk b/testing/scripts/recipes/008_xfrm-ada.mk
index 6ad451340..ad1cbb2bc 100644
--- a/testing/scripts/recipes/008_xfrm-ada.mk
+++ b/testing/scripts/recipes/008_xfrm-ada.mk
@@ -10,14 +10,16 @@ export ADA_PROJECT_PATH=$(PREFIX)/lib/gnat
all: install
-.$(PKG)-cloned:
+$(PKG):
git clone $(SRC) $(PKG)
- cd $(PKG) && git checkout $(REV)
+
+.$(PKG)-cloned-$(REV): $(PKG)
+ cd $(PKG) && git fetch && git checkout $(REV)
@touch $@
-.$(PKG)-built: .$(PKG)-cloned
+.$(PKG)-built-$(REV): .$(PKG)-cloned-$(REV)
cd $(PKG) && make
@touch $@
-install: .$(PKG)-built
+install: .$(PKG)-built-$(REV)
cd $(PKG) && make PREFIX=$(PREFIX) install