File: rules

package info (click to toggle)
abootimg 0.6-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 120 kB
  • sloc: ansic: 775; makefile: 30; sh: 27
file content (20 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')

configure/abootimg::
	echo '#define VERSION_STR "$(VERSION)"' > version.h

binary-install/abootimg::
	dh_installman $(CURDIR)/debian/abootimg.1
	install $(CURDIR)/abootimg $(CURDIR)/debian/abootimg/usr/bin
	install -T $(CURDIR)/pack-initrd $(CURDIR)/debian/abootimg/usr/bin/abootimg-pack-initrd
	install -T $(CURDIR)/unpack-initrd $(CURDIR)/debian/abootimg/usr/bin/abootimg-unpack-initrd

clean::
	rm -rf files/agtl.egg-info
	rm -rf tmp