blob: 591183184e1d3a4779a65ba41bbad4e527079531 (
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
59
60
61
62
63
64
65
66
67
68
|
--- Makefile.orig 2015-11-18 15:12:06.000000000 -0500
+++ Makefile 2018-07-04 17:18:54.680325305 -0400
@@ -143,64 +143,22 @@ p2cc: p2cc.perl
COPY = cp
newhome:
rm -f trans.o # force trans.c to be recompiled (if HOMEDIR changes)
-install: proto \
- makedirs \
- $(BINDIR)/p2c \
- $(BINDIR)/p2cc \
- $(LIBDIR)/libp2c.a \
- $(MANDIR)/p2c.1 \
- $(INCDIR)/p2c.h \
- $(HOMEDIR)/p2crc \
- $(HOMEDIR)/loc.p2crc \
- $(HOMEDIR)/system.imp \
- $(HOMEDIR)/system.m2 \
- $(HOMEDIR)/turbo.imp \
- $(HOMEDIR)/string.pas
-
-SHELL=/bin/sh
-makedirs:
- if [ ! -d $(HOMEDIR) ]; then mkdir $(HOMEDIR); else true; fi
- if [ ! -d $(BINDIR) ]; then mkdir $(BINDIR); else true; fi
- if [ ! -d $(LIBDIR) ]; then mkdir $(LIBDIR); else true; fi
- if [ ! -d $(MANDIR) ]; then mkdir $(MANDIR); else true; fi
- if [ ! -d $(INCDIR) ]; then mkdir $(INCDIR); else true; fi
-
-$(BINDIR)/p2c: p2c
+install:
$(COPY) p2c $(BINDIR)/p2c
-
-$(BINDIR)/p2cc: p2cc
$(COPY) p2cc $(BINDIR)/p2cc
-
-$(LIBDIR)/libp2c.a: libp2c.a
$(COPY) libp2c.a $(LIBDIR)/libp2c.a
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then ranlib $(LIBDIR)/libp2c.a; fi
-
-$(MANDIR)/p2c.1: $(MANFILE)
$(COPY) $(MANFILE) $(MANDIR)/p2c.1
-
-$(INCDIR)/p2c.h: p2c.h
$(COPY) p2c.h $(INCDIR)/p2c.h
-
-$(HOMEDIR)/p2crc: sys.p2crc
$(COPY) sys.p2crc $(HOMEDIR)/p2crc
-
-$(HOMEDIR)/loc.p2crc: loc.p2crc
$(COPY) loc.p2crc $(HOMEDIR)/loc.p2crc
-
-$(HOMEDIR)/system.imp: system.imp
$(COPY) system.imp $(HOMEDIR)/system.imp
-
-$(HOMEDIR)/system.m2: system.m2
$(COPY) system.m2 $(HOMEDIR)/system.m2
-
-$(HOMEDIR)/turbo.imp: turbo.imp
$(COPY) turbo.imp $(HOMEDIR)/turbo.imp
-
-$(HOMEDIR)/string.pas: string.pas
$(COPY) string.pas $(HOMEDIR)/string.pas
# Miscellaneous
|