File: process

package info (click to toggle)
bock 0.20.2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,228 kB
  • ctags: 1,370
  • sloc: ansic: 7,367; java: 5,553; yacc: 963; lex: 392; makefile: 243; sh: 90; perl: 42
file content (29 lines) | stat: -rwxr-xr-x 779 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
#! /usr/bin/make -f

Makefile:
	./configure --prefix=/usr
	@if ! grep -q "HAVE_LIBGC=1" Makefile; then \
		echo "***** Error: bock should be built with libgc installed" 1>&2; \
		exit 1; \
	fi

build: Makefile
	make
	make check

clean:
	if test -e Makefile; then make distclean; fi

install-bock:
	make prefix=$(ROOT)/usr install
	mkdir -p $(ROOT)/usr/share
	mv $(ROOT)/usr/doc $(ROOT)/usr/man $(ROOT)/usr/share/.
	$(RM) $(ROOT)/usr/share/doc/bock/COPYING
	echo '// Please refer to /usr/share/doc/bock/copyright for legal' \
			> $(ROOT)/usr/share/bock/lib/LEGAL
	echo '// details pertaining to the files in this directory.' \
			>> $(ROOT)/usr/share/bock/lib/LEGAL
	install -m 755 debian/postinst debian/prerm $(CONTROL)
	dpkg-shlibdeps -pbock $(ROOT)/usr/bin/*

finalise-bock: