File: rules

package info (click to toggle)
libdr-sundown-perl 0.02-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 264 kB
  • ctags: 307
  • sloc: ansic: 3,606; makefile: 52; perl: 42
file content (24 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

package = $(shell dpkg-parsechangelog|grep ^Source|awk '{print $$2}')
version = $(shell dpkg-parsechangelog|grep ^Version|awk '{print $$2}'   \
    |sed 's/-[[:digit:]]\+$$//' \
)


override_dh_clean:
	dh_clean
	rm -f *.tar.gz


override_dh_install:
	dh_install
	make tardist

tarball: clean
	cd .. && tar --exclude=.git --exclude=debian    \
            -czvf $(package)_$(version).orig.tar.gz \
            $(package)-$(version)

%:
	dh $@