gitignore: Add nbproject/
[strongswan.git] / testing / scripts / recipes / 014_swid_generator.mk
1 #!/usr/bin/make
2
3 PKG = swidGenerator
4 REV = v1.1.0
5 DIR = $(PKG)-$(REV)
6 TAR = $(PKG)-$(REV).tar.gz
7 SRC = https://github.com/strongswan/$(PKG)/archive/$(REV).tar.gz
8
9 all: install
10
11 $(TAR):
12 wget --ca-directory="/usr/share/ca-certificates/mozilla" $(SRC) -O $(TAR)
13
14 .$(PKG)-unpacked-$(REV): $(TAR)
15 # a tag's "v" prefix is not reflected in the directory name in the archive
16 [ -d $(DIR) ] || (mkdir -p $(DIR); tar -xf $(TAR) --strip-components=1 -C $(DIR))
17 @touch $@
18
19 install: .$(PKG)-unpacked-$(REV)
20 cd $(DIR) && python setup.py install