File: rules

package info (click to toggle)
tua 4.3-14
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 936 kB
  • sloc: ansic: 5,619; makefile: 490; yacc: 395; sh: 186
file content (62 lines) | stat: -rwxr-xr-x 1,210 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

SHELL+= -e

DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk

#export DH_VERBOSE=1

build-arch: build
build-indep:
build:
	$(checkdir)
	./configure --libdir=/etc --prefix=/usr --enable-taylor --with-globs
	$(MAKE)	
	chmod +x lib/tua_run
	touch build

clean:
	$(checkdir)
	dh_clean
	-rm -f build doc/tua.info doc/tua.1l
	if [ -f Makefile ]; then make distclean ; fi
	-rm -f po/cat-id-tbl.c po/TUA.pot src/hdb/Makefile src/taylor/Makefile
	-cd debian && rm -rf tmp files* substvars *debhelper

binary-indep:
	echo TUA produces no arch all packages.

# Build architecture-dependent files here.
binary-arch: checkroot build
	$(checkdir)
	-rm -rf debian/tua

	dh_installdirs
	$(MAKE) install prefix=`pwd`/debian/tmp/usr SUBDIRS="po"
	cp lib/TUA.pcd debian/tua/etc/tua.pcd
	dh_installdocs README PROJECTS TUA.tiff
	dh_installcron
	dh_installman
	dh_installinfo doc/tua.info
	dh_installchangelogs ChangeLog
	dh_install
	dh_strip
	dh_compress
	dh_fixperms
	dh_md5sums
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

define checkdir
	test -f debian/rules
endef

binary: binary-arch

checkroot:
	test root = "`whoami`"

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