File: Makefile

package info (click to toggle)
libreswan 5.2-2.3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 81,644 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (23 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# these need get fixed not to use root

top_srcdir = ../..

.PHONY: deb
deb: | $(top_srcdir)/debian
	cd $(top_srcdir) && debuild -i -us -uc -b
	rm -fr $(top_srcdir)/debian
#debuild -S -sa

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/~-/~/")

# racy
$(top_srcdir)/debian:
	cp -r . $(top_srcdir)/debian
	cat $(top_srcdir)/debian/changelog
	grep "IPSECBASEVERSION" $(top_srcdir)/debian/changelog && \
		sed -i "s/@IPSECBASEVERSION@/$(DEBIAN_IPSEC_BASE_VERSION)/g" $(top_srcdir)/debian/changelog || \
		echo "missing IPSECBASEVERSION in debian/changelog. This is not git repository?"
	cat $(top_srcdir)/debian/changelog

showdebversion:
	@echo $(DEBIAN_IPSEC_BASE_VERSION)