File: rules

package info (click to toggle)
dds 1.1.8%2Bddd105-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 856 kB
  • ctags: 664
  • sloc: cpp: 7,277; ansic: 276; python: 95; makefile: 70
file content (54 lines) | stat: -rwxr-xr-x 1,240 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
#!/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_clean -k
	# 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

binary-indep:

binary-arch: install
	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

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