kernel-netlink: add outer addresses to policy when using BEET mode
[strongswan.git] / packages / maemo-applet / Makefile
1 SOURCE:=../../src/frontends/maemo
2 BUILD:=build
3 VERSION:=$(shell sed -n 's/AC_INIT(.*,\s*\(.*\))/\1/p' $(SOURCE)/configure.ac)
4 TARGETVERSION:=$(VERSION)
5 ORIGNAME:=strongswan-applet-$(VERSION)
6 ORIGSRC:=$(BUILD)/strongswan-applet_$(TARGETVERSION).orig.tar.gz
7
8 package: $(ORIGSRC) prepare
9 cd $(BUILD)/$(ORIGNAME) && \
10 dpkg-buildpackage -rfakeroot -sa > /dev/null
11
12 source: $(ORIGSRC) prepare
13 cd $(BUILD)/$(ORIGNAME) && \
14 dpkg-buildpackage -rfakeroot -sa -S > /dev/null
15
16 prepare:
17 debchange -b -v $(TARGETVERSION)-1
18 cp -R debian $(BUILD)/$(ORIGNAME)
19
20 $(ORIGSRC): $(SOURCE)/Makefile | $(BUILD)
21 make -j -C $(SOURCE) dist-gzip > /dev/null
22 mv $(SOURCE)/$(ORIGNAME).tar.gz $(ORIGSRC)
23 tar -zx -C $(BUILD) -f $(ORIGSRC)
24
25 $(SOURCE)/Makefile: $(SOURCE)/configure
26 cd $(SOURCE) && ./configure > /dev/null
27
28 $(SOURCE)/configure: $(SOURCE)/configure.ac
29 cd $(SOURCE) && ./autogen.sh > /dev/null
30
31 $(BUILD):
32 mkdir -p $(BUILD)
33
34 clean:
35 rm -Rf $(BUILD)
36
37 .PHONY: package source prepare clean