File: rules

package info (click to toggle)
scsh-defaults 0.6.6.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 24 kB
  • ctags: 4
  • sloc: makefile: 42
file content (70 lines) | stat: -rwxr-xr-x 1,210 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
68
69
70
#!/usr/bin/make -f

export SHELL = /bin/bash

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)

export VER=0.6

PWD		:= $(shell pwd)

build-indep: stamp-build
stamp-build:
	touch stamp-build

build-arch:
#nothing to do

control-file:
	sed -e "s/@VER@/$(VER)/g" \
		< debian/control.in > debian/control

clean:
	dh_testdir
	dh_testroot
	rm -f stamp-*
	rm -f patch-stamp*
	dh_clean

install: build stamp-install
stamp-install: stamp-build
	dh_testdir
	dh_testroot
	dh_clean -k

	touch stamp-install

binary-indep: build install
	dh_testdir -i
	dh_testroot -i

	mkdir -p debian/scsh/usr/bin
	ln -sf scsh-$(VER) debian/scsh/usr/bin/scsh

	mkdir -p debian/scsh/usr/share/man/man1
	ln -sf scsh-$(VER).1.gz \
		debian/scsh/usr/share/man/man1/scsh.1.gz

	dh_installdocs -i
	dh_installchangelogs -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build-arch
# nothing to do

binary: binary-indep binary-arch

.PHONY: control-file configure build clean binary-indep binary-arch binary install

# Local Variables:
# mode: makefile
# end: