File: rules

package info (click to toggle)
dds 2.0.1%2Bddd105-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 920 kB
  • ctags: 664
  • sloc: cpp: 7,561; ansic: 285; python: 95; makefile: 80
file content (67 lines) | stat: -rwxr-xr-x 1,594 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/make -f
#export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

build build-indep build-arch: build-stamp
build-stamp: $(QUILT_STAMPFN)
	# libdds
	$(MAKE)
	# dds
	$(MAKE) -C ddd
	sed -ne '/^\/\* =/,/^\*\//p' ddd/giblib.h > ddd/giblib.txt
	# pydds
	-ln -s ../dll.h ../dds.cpp python
	cd python && python setup.py build
	touch $@

install: build-stamp
	dh_testroot
	dh_prep
	# libdds
	$(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/libdds-dev
	# dds
	$(MAKE) -C ddd install PREFIX=/usr DESTDIR=$(CURDIR)/debian/dds
	# pydds
	cd python && python setup.py install --root $(CURDIR)/debian/python-pydds

test: build-stamp
	@echo Running tests ...
	ddd/ddd -giblib=1-100 ddd/test.gib

binary-indep:

binary-arch: install test
	dh_installchangelogs -a release_notes.txt
	dh_installdocs -a -A debian/README.Debian
	dh_installman -a
	dh_installexamples -a
	dh_strip -a
	dh_compress -a
	dh_pycentral -p'python-pydds'
	dh_fixperms -a
	dh_shlibdeps -a
	dh_installdeb -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

clean: unpatch
	dh_testdir
	$(MAKE) clean
	$(MAKE) -C ddd clean
	rm -rf python/build
	dh_clean build-stamp ddd/giblib.txt python/dll.h python/dds.cpp

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

origtgz: unpatch
	test ! -e ../dds_$(VERSION).orig.tar.gz
	test ! -d dds-$(VERSION)
	svn export . dds-$(VERSION)
	tar -czf ../dds_$(VERSION).orig.tar.gz dds-$(VERSION)
	rm -rf dds-$(VERSION)

.PHONY: build build-indep build-arch clean binary binary-indep binary-arch install configure patch unpatch test