File: rules

package info (click to toggle)
gitmagic 20160304-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 2,280 kB
  • ctags: 20
  • sloc: makefile: 98; sh: 38
file content (31 lines) | stat: -rwxr-xr-x 954 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

%:
	dh $@

DATE=$(shell date --utc +%Y%m%d)

get-orig-source:
	# Needs: git-core
	cd .. && git clone git://repo.or.cz/gitmagic.git gitmagic-$(DATE)
	cd ../gitmagic-$(DATE) && git log --pretty=format:"%aD%n- %s%n" --no-merges > ChangeLog
	cd .. && rm -rf gitmagic-$(DATE)/.git
	tar cfz ../gitmagic-$(DATE).tar.gz ../gitmagic-$(DATE)
	rm -rf ../gitmagic-$(DATE)/

override_dh_auto_build:
	$(MAKE) book-en book-en.html book-en.pdf

override_dh_clean:
	rm -rf conf
	dh_clean

override_dh_auto_install:
	install -D -m 0644 book-en.html debian/gitmagic/usr/share/doc/gitmagic/gitmagic.html
	install -D -m 0644 book-en.pdf debian/gitmagic/usr/share/doc/gitmagic/gitmagic.pdf
	install -D -m 0644 book.css debian/gitmagic/usr/share/doc/gitmagic/html/default.css
	cp -a book-en/* debian/gitmagic/usr/share/doc/gitmagic/html
	rm debian/gitmagic/usr/share/doc/gitmagic/html/book-en.proc

override_dh_compress:
	dh_compress --exclude=gitmagic.pdf