File: rules

package info (click to toggle)
woof 20091227-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 148 kB
  • ctags: 69
  • sloc: python: 1,027; makefile: 13
file content (16 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

%:
	dh  $@

SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
TARBALL = woof_$(SRC_VERSION).orig.tar.gz
.PHONY: get-orig-source
get-orig-source:
	rm -rf get-orig-source $(TARBALL)
	mkdir -p get-orig-source/woof_$(SRC_VERSION)
	cp CHANGELOG get-orig-source/woof_$(SRC_VERSION)/
	wget -O get-orig-source/woof_$(SRC_VERSION)/woof  http://www.home.unix-ag.org/simon/woof
	chmod +x get-orig-source/woof_$(SRC_VERSION)/woof
	GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source woof_$(SRC_VERSION)
	rm -rf get-orig-source