1 $NetBSD: patch-aa,v 1.3 2008/06/20 01:09:25 joerg Exp $
3 --- Makefile.orig 1994-12-15 01:53:00.000000000 +0000
5 @@ -46,16 +46,16 @@ DATA = $(PROGRAM).data
6 NINSTPKG = $(PROGRAM).pkg
8 # where to install this stuff
10 +DEST = ${DESTDIR}$(PREFIX)
13 -DESTLIB = $(DEST)/lib
14 +DESTLIB = $(DEST)/libdata/brs
16 DESTMAN1 = $(DESTMAN)/man1
18 # I use environment variables for these...
20 -CFLAGS = -O2 -fwritable-strings -DDESTLIB=\"$(DESTLIB)\"
21 +CFLAGS += -fwritable-strings -DDESTLIB=\"$(DESTLIB)\"
23 # release directories. Nobody should care about this but me
25 @@ -66,7 +66,7 @@ NINSTPKGDIR = $(NINSTDIR)/packages
26 # This is only used by the author when making a new release ftp-able.
34 @@ -398,31 +398,12 @@ ninstall: $(NINSTPKG)
35 # The "install" target could be of general use. That's why there are
36 # no explicit dependencies here. They just confuse things...
38 - @if [ ! -r $(DEST) ]; then mkdir $(DEST); fi
39 - @echo Installing $(PROGRAM) in $(DESTBIN)
41 - @if [ ! -r $(DESTBIN) ]; then mkdir $(DESTBIN); fi
42 - @if [ $(DESTBIN) != . ]; then \
43 - ((cd $(DESTBIN);rm -f $(PROGRAM)); \
44 - cp $(PROGRAM) $(DESTBIN)); \
45 - chown bin $(DESTBIN)/$(PROGRAM); \
46 - chgrp bin $(DESTBIN)/$(PROGRAM); \
47 - chmod 755 $(DESTBIN)/$(PROGRAM); fi
48 - @echo Installing $(DATA) and $(DATA).conc in $(DESTLIB)
49 - @if [ ! -r $(DESTLIB) ]; then mkdir $(DESTLIB); fi
50 - @if [ $(DESTLIB) != . ]; then \
51 - cp $(DATA) $(DATA).conc $(DESTLIB); \
52 - chown bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
53 - chgrp bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
54 - chmod 644 $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; fi
55 - @if [ ! -r $(DESTMAN) ]; then mkdir $(DESTMAN); fi
56 - @echo Installing $(MAN) in $(DESTMAN1)
57 - @if [ ! -r $(DESTMAN1) ]; then mkdir $(DESTMAN1); fi
58 - @if [ $(DESTMAN1) != . ]; then \
59 - cp $(MAN) $(DESTMAN1)/$(MAN); \
60 - chown bin $(DESTMAN1)/$(MAN); \
61 - chgrp bin $(DESTMAN1)/$(MAN); \
62 - chmod 644 $(DESTMAN1)/$(MAN); fi
63 + $(BSD_INSTALL_PROGRAM_DIR) $(DESTBIN)
64 + $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTBIN)/
65 + $(BSD_INSTALL_DATA_DIR) $(DESTLIB)
66 + $(BSD_INSTALL_DATA) $(DATA) $(DATA).conc $(DESTLIB)/
67 + $(BSD_INSTALL_MAN_DIR) $(DESTMAN1)
68 + $(BSD_INSTALL_MAN) $(MAN) $(DESTMAN1)/
70 uninstall:; @echo Un-installing $(PROGRAM), $(DATA) and $(MAN)
71 rm -f $(DESTBIN)/$(PROGRAM)