File: rules

package info (click to toggle)
flamerobin 0.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,704 kB
  • ctags: 7,892
  • sloc: cpp: 45,668; sh: 2,751; xml: 1,189; makefile: 513
file content (33 lines) | stat: -rwxr-xr-x 1,041 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
#!/usr/bin/make -f

%:
	# the plus here allows make's jobserver to do its job
	# in make instances started by debhelper
	+dh $@

override_dh_auto_configure:
	sh debian/mangle-svn-rev.sh
	[ -e config.sub-ORIG ]   || mv config.sub   config.sub-ORIG
	[ -e config.guess-ORIG ] || mv config.guess config.guess-ORIG
	cp /usr/share/misc/config.sub .
	cp /usr/share/misc/config.guess .
	chmod u+x configure
	dh_auto_configure
	
	# the build process may change this file. save a copy
	# and restore it in clean
	cp src/frsvnrev.h src/frsvnrev.h-ORIG

override_dh_auto_clean:
	dh_auto_clean
	if [ -f Makefile ]; then $(MAKE) distclean; fi
	[ ! -e src/frsvnrev.h-ORIG ] || mv -f src/frsvnrev.h-ORIG src/frsvnrev.h
	[ ! -e config.sub-ORIG ]   || mv config.sub-ORIG   config.sub
	[ ! -e config.guess-ORIG ] || mv config.guess-ORIG config.guess

override_dh_auto_install:
	$(MAKE) install prefix=$(CURDIR)/debian/flamerobin/usr

override_dh_installchangelogs:
	html2text docs/fr_whatsnew.html > upstream-changelog
	dh_installchangelogs upstream-changelog