Makefile
1.69 KB
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
#
# Makefile for old relnotes (different from other man dirs)
#
include $(ROOT)/usr/include/make/PRdefs
OLD_RELNOTES = relnotes.090795 \
relnotes.092995 \
relnotes.102695 \
relnotes20B \
relnotes20C \
relnotes20E \
relnotes20F \
relnotes20G \
relnotes20H.jp
OLD_DOCS = relnotes20I.jp \
relnotes20I_64dd.jp \
relnotes20I_naudio.jp \
relnotes20J.jp \
relnotes20K.jp
OLD_SGIDOCS = ${OLD_DOCS:.jp=.sgi}
OLD_PCDOCS = ${OLD_DOCS:.jp=.pc}
LDIRT = $(OLD_SGIDOCS) $(OLD_PCDOCS)
default:
include $(COMMONRULES)
install: default $(OLD_SGIDOCS)
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
$(OLD_RELNOTES)
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
-src relnotes20I.sgi relnotes20I.jp
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
-src relnotes20I_64dd.sgi relnotes20I_64dd.jp
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
-src relnotes20I_naudio.sgi relnotes20I_naudio.jp
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
-src relnotes20J.sgi relnotes20J.jp
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
-src relnotes20K.sgi relnotes20K.jp
(cd patches20I; make install)
(cd patches20J; make install)
$(OLD_SGIDOCS):
for i in $(OLD_DOCS:.jp=); \
do \
perl -ne 'if(/^#if(def.+PC|ndef.+SGI)/){$$a=1}elsif(/^#if(ndef.+PC|def.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' $$i.jp > $$i.sgi; \
done
$(OLD_PCDOCS):
for i in $(OLD_DOCS:.jp=); \
do \
perl -ne 'if(/^#if(def.+SGI|ndef.+PC)/){$$a=1}elsif(/^#if(ndef.+SGI|def.+PC)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' $$i.jp > $$i.pc; \
done
pcdocs: $(OLD_PCDOCS)
(cd patches20I; make pcdocs)
(cd patches20J; make pcdocs)