File: rules

package info (click to toggle)
synopsis 0.12-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 38,944 kB
  • ctags: 18,296
  • sloc: ansic: 41,842; cpp: 39,920; xml: 17,704; python: 13,545; sh: 10,045; yacc: 1,271; makefile: 1,237; lex: 684; asm: 361
file content (42 lines) | stat: -rwxr-xr-x 1,026 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
#!/usr/bin/make -f

PKG_TMP=$(CURDIR)/debian/tmp

export ROOTSYNOPSIS=$(CURDIR)/debian/synopsis
export ROOTSYNOPSISDOC=$(CURDIR)/debian/synopsis-doc

clean:
	dh clean
	# cancel mor stuff, to build it twice in a row
	find $(CURDIR)/Synopsis -name "*.pyc" -delete
	rm -rf build/

%:
	dh $@ --with python2

override_dh_auto_clean:

override_dh_link:
	dh_link usr/lib/synopsis/synopsis usr/bin/synopsis
	dh_link usr/lib/synopsis/sxr-server usr/bin/sxr-server
	dh_link

override_dh_auto_configure:
	python setup.py config --prefix=/usr --with-gc-prefix=/usr

override_dh_auto_build:
	python setup.py build

override_dh_auto_install:
	python setup.py install\
		--no-compile -O0 --install-layout=deb\
		--install-lib=/usr/lib/synopsis\
		--install-scripts=/usr/lib/synopsis\
		--root=$(PKG_TMP)\
		--prefix=/usr
	mv -f $(PKG_TMP)/usr/share/doc/synopsis-* $(PKG_TMP)/usr/share/doc/synopsis-doc
	rm -f $(PKG_TMP)/usr/share/doc/synopsis-doc/COPYING

override_dh_install:
	mkdir -p debian/tmp/usr/bin
	dh_install --sourcedir=debian/tmp