File: rules

package info (click to toggle)
skim 1.4.5-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,904 kB
  • ctags: 1,257
  • sloc: cpp: 9,423; python: 1,608; sh: 329; makefile: 71
file content (80 lines) | stat: -rwxr-xr-x 1,966 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
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified for skim package by 
# William J Beksi <wjbeksi@users.sourceforge.net> 2005

SCONS=-scons --no-cache -Q

config.status: patch configure
	dh_testdir
	$(SCONS) configure prefix=$(DEB_DESTDIR)/usr

build: build-stamp
build-stamp: config.status
	$(SCONS)
	touch build-stamp

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp 

	-$(SCONS) -c && rm -rf cache
	-mkdir cache
	-rm -rf scons-local-0.96.1
	-rm -f bksys/*.pyc
	-rm -f po/*.gmo
	-rm config.log
	-rm -rf .sconf_temp
	dh_clean 

patch: patch-stamp
patch-stamp:
	dpatch apply-all

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

install: install-stamp
install-stamp: build-stamp
	$(SCONS) install DESTDIR=$(CURDIR)/debian/tmp
	install -m 644 -D \
		$(CURDIR)/debian/im-switch/skim \
		$(CURDIR)/debian/tmp/etc/X11/xinit/xinput.d/skim
	#rm $(CURDIR)/debian/tmp/usr/share/autostart/skim.desktop	
	# Prepare files for different packages to seperate directories.
	dh_install --sourcedir=debian/tmp --fail-missing
	chmod 644 $(CURDIR)/debian/skim/usr/share/servicetypes/*
	chmod 644 $(CURDIR)/debian/skim/usr/share/services/skimconfiguredialog/*
	chmod 644 $(CURDIR)/debian/skim/usr/share/icons/crystalsvg/32x32/apps/skim.png
	touch install-stamp

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs ABOUT-NLS AUTHORS NEWS README TODO
	dh_installexamples
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs -X usr/lib/kde3 -X usr/lib/scim-1.0/1.4.0
	dh_installdeb
	dh_shlibdeps -L libskim0 -l debian/libskim0/usr/lib
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install