File: Makefile

package info (click to toggle)
fortunes-it 2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,940 kB
  • sloc: makefile: 80; sh: 9
file content (39 lines) | stat: -rw-r--r-- 970 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: clean all dist install

all:
	$(MAKE) -C testi

test:
	tests/endpercent.sh

clean:
	$(MAKE) -C testi clean
	$(RM) fortunes-it_*.orig.tar.gz*
	$(RM) -r deb-pkg/

install:
	$(MAKE) -C testi install

dist: clean
	cd .. && tar -czvvf fortunes-it_`head -1 fortunes-it/CHANGELOG.md`.orig.tar.gz \
		fortunes-it/CHANGELOG.md \
		fortunes-it/descriz/*.des \
		fortunes-it/INSTALLAZIONE \
		fortunes-it/CODICE_DI_CONDOTTA.md \
		fortunes-it/COPYING \
		fortunes-it/Makefile \
		fortunes-it/README \
		fortunes-it/testi/* \
		fortunes-it/tests/*
	mv ../fortunes-it_*orig.tar.gz .
	gpg --detach-sign -a *.orig.tar.gz

deb-pkg: dist
	mv fortunes-it_`head -1 CHANGELOG.md`.orig.tar.gz* /tmp
	cd /tmp; tar -xf fortunes-it_*.orig.tar.gz
	cp -r debian /tmp/fortunes-it/
	cd /tmp/fortunes-it/; dpkg-buildpackage --changes-option=-S
	mkdir deb-pkg
	mv /tmp/fortunes-it_* deb-pkg
	$(RM) -r /tmp/fortunes-it
	lintian --pedantic -E --color auto -i -I deb-pkg/*.changes deb-pkg/*.deb