File: rules

package info (click to toggle)
tela 1.28-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 6,596 kB
  • ctags: 5,519
  • sloc: ansic: 14,013; cpp: 13,376; lex: 1,651; fortran: 1,048; yacc: 834; sh: 715; makefile: 464
file content (93 lines) | stat: -rwxr-xr-x 2,165 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
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/make -f
# ssystem debian build rules
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
 
package=tela

INSTALL=/usr/bin/install

curdir = $(shell pwd)

build:
	$(checkdir)
	make CC=cc F77=g77

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

binary-indep: checkroot
	$(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
	$(checkdir)
	-rm -rf debian/tmp

#  Install directories
	install -d debian/tmp/usr/bin
	install -d debian/tmp/usr/man/man1
	install -d debian/tmp/usr/doc/$(package)
	install -d debian/tmp/usr/lib/$(package)
	install -d debian/tmp/DEBIAN

#  Install binary
	strip --strip-unneeded $(package)
	make   \
	       INSTALL_BINDIR="$(curdir)/debian/tmp/usr/lib/$(package)" \
	       INSTALL_LIBDIR="$(curdir)/debian/tmp/usr/lib/$(package)" \
	       FINAL_BINDIR="/usr/lib/$(package)"  \
	       FINAL_LIBDIR="/usr/lib/$(package)" install installdocs


	strip --strip-debug debian/tmp/usr/lib/tela/ctpp
#
	cd debian/tmp/usr/bin;   \
		ln -s /usr/lib/$(package)/$(package) tela ;  \
		ln -s /usr/lib/$(package)/telakka telakka

	$(INSTALL) -m 644 doc/tela.1 debian/tmp/usr/man/man1
	$(INSTALL) -m 644 doc/telakka.1 debian/tmp/usr/man/man1
	gzip -9vf debian/tmp/usr/man/man1/*

#
	cp debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
	$(INSTALL) -m 644 README CREDITS debian/tmp/usr/doc/$(package)
	cp CHANGES debian/tmp/usr/doc/$(package)/changelog
	gzip -9v debian/tmp/usr/doc/$(package)/*

#
	cp debian/copyright debian/tmp/usr/doc/$(package)/copyright


	   dpkg-shlibdeps debian/tmp/usr/lib/$(package)/$(package)
	   dpkg-gencontrol
	   chown -R root.root debian/tmp
	   chmod -R go=rX debian/tmp
	   dpkg --build debian/tmp ..



define checkdir
	test -f debian/rules
endef

binary: binary-indep binary-arch

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

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