blob: 7abc50789465b48a0013353b6b81c69b38f0ec85 (
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
|
--- Makefile.orig Wed Jul 29 21:42:13 1998
+++ Makefile Wed Jul 29 21:42:24 1998
@@ -45,11 +45,14 @@
# Default locations where mp files will be installed.
# You might wish to alter these values.
#
-MPPATH = /usr/local
+#MPPATH = /usr/local
+MPPATH = $(PREFIX)
MPBINDIR = $(MPPATH)/bin
-MPLIBDIR = $(MPPATH)/lib
+#MPLIBDIR = $(MPPATH)/lib
+MPLIBDIR = $(MPPATH)/share/mp
MPMANDIR = $(MPPATH)/man/man$(MPMANSECT)
-MPMANSECT = l
+#MPMANSECT = l
+MPMANSECT = 1
#---------------------------------------------------------------------
# Alternate names for the mailp frontend
#
@@ -58,11 +61,13 @@
# Compilation flags and standard macro definitions.
#
CDEFS = $(GECOSFIELDS) $(GECOSLENGTH) $(PROLOGUE)
-CCOMP = -O
+CXXFLAGS ?= $(CFLAGS)
+CCOMP := $(CXXFLAGS)
CCFLAGS = $(CCOMP) $(CDEFS)
LDFLAGS =
-CCC = g++
+CXXFLAGS = $(CCFLAGS) # needed for gmake's implicit rule
+CCC = $(CXX)
#=================================================================
.KEEPSTATE:
@@ -107,10 +112,10 @@
@echo "**IMPORTANT NOTE**"
@echo
@echo "Mp is setup by default to work with US Letter sized paper."
- @echo "If you are using A4 sized paper, you should reinstall, by
+ @echo "If you are using A4 sized paper, you should reinstall, by"
@echo "doing a:"
@echo
- @echo "make install-a4"
+ @echo "make PAPERSIZE=a4 reinstall"
@echo
common-install: $(BINARIES)
@@ -122,6 +127,8 @@
-cp mp.1 $(MPMANDIR)/mp.$(MPMANSECT)
-chmod 644 $(MPMANDIR)/mp.$(MPMANSECT)
# mp.common.ps
+ -mkdir $(MPLIBDIR)
+#
-cp mp.common.ps $(MPLIBDIR)
-chmod 644 $(MPLIBDIR)/mp.common.ps
# mp.pro.ps
|