blob: d63a7ba81cadd6915ff533cd4dcec9198fb90e64 (
plain)
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
|
$NetBSD: patch-aa,v 1.4 2002/02/16 01:21:53 wiz Exp $
--- Makefile.orig Wed Nov 26 00:16:06 1997
+++ Makefile
@@ -30,7 +30,6 @@
# Set this to an ANSI compatible C compiler (preferably gcc)
# See also system specific settings below
#CC=cc
-CC=gcc
############################################################################
#
@@ -45,7 +44,7 @@
# PAGE_A4 for European A4
#
# PAGESIZE=PAGE_LETTER
-PAGESIZE=PAGE_A4
+#PAGESIZE=PAGE_A4
#
# Define your spooler type
@@ -55,9 +54,8 @@
SPOOL_TYPE=BSD_SPOOLER
# PREFIX=e:/usr # OS/2 type
-PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
-LIBDIR=$(PREFIX)/lib
+LIBDIR=$(PREFIX)/share
MANDIR=$(PREFIX)/man/man1
#
@@ -110,8 +108,8 @@
# Choose one of the following CFLAGS/CC definitions:
# If you are using gcc, you probably don't need to change anything here.
-# Linux:
-CFLAGS = -O2 -s $(DEFS) -Wall
+# Linux or BSD:
+CFLAGS += -O2 -s $(DEFS) -Wall
# AIX (xlC on aix 4):
#CFLAGS = -O2 -s $(DEFS)
@@ -168,10 +166,10 @@
#
-# add your proper install stuff
+# BSD specific install stuff
#
install:
- cp mpage$(E) $(BINDIR)
- cp mpage.1 $(MANDIR)
+ $(BSD_INSTALL_PROGRAM) mpage$(E) $(BINDIR)
+ $(BSD_INSTALL_MAN) mpage.1 $(MANDIR)
if [ ! -d $(LIBDIR)/mpage ] ; then mkdir $(LIBDIR)/mpage ; fi
- -cp Encodings/* $(LIBDIR)/mpage
+ $(BSD_INSTALL_DATA) Encodings/* $(LIBDIR)/mpage
|