File: rules

package info (click to toggle)
xserver-sis 0.990907-2
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 2,672 kB
  • ctags: 4
  • sloc: sh: 300; makefile: 32
file content (50 lines) | stat: -rwxr-xr-x 1,286 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
#!/usr/bin/make -f

package=xserver-sis
SHELL+= -e
install=/usr/bin/install -p

build:
	$(checkdir)
	touch build

clean:
	$(checkdir)
	rm -f build
	rm -f `find . -name "*~"`
	rm -rf debian/tmp debian/files* core debian/substvars config.log config.status Makefile config.cache bison.simple configure usr/X11R6/bin/XF86_SiS

binary-indep:	checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	checkroot build
	$(checkdir)
	rm -rf debian/tmp
	install -d debian/tmp/usr/share/doc/$(package) debian/tmp/DEBIAN debian/tmp/usr/X11R6/man/man1/
	install -d debian/tmp/usr/X11R6/lib/X11/
	# cp -ar var debian/tmp/var
	# cp -ar usr debian/tmp/usr
	cp -a usr/X11R6/bin/XFCom_SiS usr/X11R6/bin/XF86_SiS
	cp -ar usr/X11R6/lib/X11/Cards.SiS debian/tmp/usr/X11R6/lib/X11/Cards.SiS
	chmod +x debian/{create-server,xtree,archmap} && \
	debian/create-server sis SiS XF86

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot