2
# Build rules for pmake (1.39)
3
# Based on Ian Jackson's sample rules file for GNU hello
4
# Copyright 1994,1995 by Ian Jackson.
5
# Copyright 1997,1998 by James Troup.
6
# Copyright 1999 by Edward Brocklesby.
7
# I hereby give you perpetual unlimited permission to copy,
8
# modify and relicense this file, provided that you do not remove
9
# my name from the file itself. (I assert my moral right of
10
# paternity under the Copyright, Designs and Patents Act 1988.)
12
ARCH=$(shell dpkg --print-gnu-build-architecture)
13
CFLAGS="-O2 -g -Wall -D__COPYRIGHT\(x\)= -D__RCSID\(x\)= \
14
-I. -DMACHINE=\\\"debian\\\" -DMACHINE_ARCH=\\\"${ARCH}\\\" \
19
$(MAKE) -f Makefile.boot CFLAGS=$(CFLAGS)
24
$(MAKE) -f Makefile.boot clean
25
-rm -rf build *~ debian/tmp debian/*~ debian/files* debian/substvar*
27
binary-indep: checkroot build
30
binary-arch: checkroot build
33
install -d -m 755 debian/tmp/DEBIAN/
34
install -m 644 debian/control debian/tmp/DEBIAN/
36
install -d -m 755 debian/tmp/usr/bin/
37
install -s -m 755 bmake debian/tmp/usr/bin/pmake
38
install -m 755 mkdep debian/tmp/usr/bin/
40
install -d -m 755 debian/tmp/usr/share/man/man1/
41
install -m 644 make.1 debian/tmp/usr/share/man/man1/pmake.1
42
install -m 644 mkdep.1 debian/tmp/usr/share/man/man1/
43
gzip -9v debian/tmp/usr/share/man/man1/*
45
install -d -m 755 debian/tmp/usr/share/mk/
48
install -m 644 $$file debian/tmp/usr/share/$$file; \
51
install -d -m 755 debian/tmp/usr/share/doc/pmake/
52
groff -Tascii -ms PSD.doc/tutorial.ms > \
53
debian/tmp/usr/share/doc/pmake/tutorial.asc
54
groff -Tps -ms PSD.doc/tutorial.ms > \
55
debian/tmp/usr/share/doc/pmake/tutorial.ps
56
cp debian/changelog debian/tmp/usr/share/doc/pmake/changelog.Debian
57
gzip -9v debian/tmp/usr/share/doc/pmake/*
58
install -m 644 debian/copyright debian/tmp/usr/share/doc/pmake/
60
-install -m 755 debian/preinst debian/tmp/DEBIAN/preinst
61
-install -m 755 debian/postinst debian/tmp/DEBIAN/postinst
62
-install -m 755 debian/prerm debian/tmp/DEBIAN/prerm
63
-install -m 755 debian/postrm debian/tmp/DEBIAN/postrm
65
dpkg-shlibdeps debian/tmp/usr/bin/pmake
67
chown -R root.root debian/tmp/
68
chmod -R go=rX debian/tmp/
69
dpkg --build debian/tmp/ ..
72
test -f make.c -a -f debian/rules
75
# Below here is fairly generic really
77
binary: binary-indep binary-arch
80
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
84
test root = "`whoami`"
86
.PHONY: binary binary-arch binary-indep clean checkroot