File: rules

package info (click to toggle)
scons-doc 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,076 kB
  • sloc: python: 48,968; xml: 29,210; sh: 504; perl: 295; makefile: 17
file content (23 lines) | stat: -rwxr-xr-x 910 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
#!/usr/bin/make -f

VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/')

%:
	dh $@

override_dh_auto_clean:
	scons -c
	rm -fr build

override_dh_auto_install:
	scons doc
	rm -r $(CURDIR)/build/doc/HTML/scons-reference*
	find $(CURDIR)/build/doc -name "*scons-reference*" -delete
	find $(CURDIR)/build/doc -name "*-man*" -delete

get-orig-source:
	wget http://downloads.sourceforge.net/project/scons/scons-src/${VERSION}/scons-src-${VERSION}.tar.gz -O ../scons-src-${VERSION}.tar.gz
	tar fxz ../scons-src-${VERSION}.tar.gz -C ../ && mv ../scons-src-${VERSION} ../scons-doc-${VERSION}
	tar czf ../scons-doc_${VERSION}.orig.tar.gz ../scons-doc-${VERSION}/bin ../scons-doc-${VERSION}/config \
		../scons-doc-${VERSION}/doc  ../scons-doc-${VERSION}/LICENSE ../scons-doc-${VERSION}/SConstruct ../scons-doc-${VERSION}/src
	rm -fr ../scons-doc-${VERSION} ../scons-src-${VERSION}.tar.gz