File: rules

package info (click to toggle)
ntfs 971218-4
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 692 kB
  • ctags: 670
  • sloc: ansic: 7,774; sh: 1,509; makefile: 232
file content (70 lines) | stat: -rwxr-xr-x 1,805 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
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=$(shell grep Package: debian/control|cut -d' ' -f 2)

build:
	$(checkdir)
	./configure --with-device=/dev/sda2 --with-mount-to=/nt
	make MODFLAGS="-D__KERNEL__ -DMODULE -D_POSIX_SOURCE -I/usr/src/linux/include -DCONFIG_MODVERSIONS"

	touch build

clean:
	$(checkdir)
	-rm -f build
	-make clean
	-rm -f `find . -name "*~"`
	-rm -rf debian/tmp debian/files* core debian/substvars common/*.o

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 debian/tmp/usr/man/man1 debian/tmp/usr/man/man8
	cd debian/tmp && install -d `cat ../dirs`
	make install DESTDIR=`pwd`/debian/tmp
	(cd `pwd`/debian/tmp/usr/man/man1;\
		ln -s ../man7/undocumented.7.gz ntdir.1.gz;\
		ln -s ../man7/undocumented.7.gz ntcat.1.gz;\
		ln -s ../man7/undocumented.7.gz ntgrep.1.gz;\
		ln -s ../man7/undocumented.7.gz ntcp.1.gz;\
	)
	(cd `pwd`/debian/tmp/usr/man/man8;\
		ln -s ../man7/undocumented.7.gz ntdump.8.gz;\
		ln -s ../man7/undocumented.7.gz ntchange.8.gz;\
	)
	install -d debian/tmp/usr/doc/$(package)
	cp README HACKING doc/* debian/tmp/usr/doc/$(package)
	dh_installdocs
	dh_installmanpages
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

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

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