Debian Codegraph @

packaging/debian/Makefile

raw
1 # these need get fixed not to use root
2
3 top_srcdir = ../..
4
5 .PHONY: deb
6 deb: | $(top_srcdir)/debian
7 cd $(top_srcdir) && debuild -i -us -uc -b
8 rm -fr $(top_srcdir)/debian
9 #debuild -S -sa
10
11 DEBIAN_IPSEC_BASE_VERSION=$(shell make --directory $(top_srcdir) --silent showversion | sed -e "s/\([0-9]\{1,3\}\)\.\([0-9]\{1,3\}\)\(.*\)/\1.\2~\3/" | sed "s/~-/~/")
12
13 # racy
14 $(top_srcdir)/debian:
15 cp -r . $(top_srcdir)/debian
16 cat $(top_srcdir)/debian/changelog
17 grep "IPSECBASEVERSION" $(top_srcdir)/debian/changelog && \
18 sed -i "s/@IPSECBASEVERSION@/$(DEBIAN_IPSEC_BASE_VERSION)/g" $(top_srcdir)/debian/changelog || \
19 echo "missing IPSECBASEVERSION in debian/changelog. This is not git repository?"
20 cat $(top_srcdir)/debian/changelog
21
22 showdebversion:
23 @echo $(DEBIAN_IPSEC_BASE_VERSION)