Makefile
995 Bytes
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
#
# Makefile for patches20I 64dd
#
include $(ROOT)/usr/include/make/PRdefs
OLD_DOCS = Changefiles.jp \
DOC_brake.jp \
DOC_errseq.jp \
DOC_mdisk.jp \
DOC_packer.jp \
DOC_pwoff.jp \
DOC_rtcfnc.jp \
README.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)
for i in $(OLD_SGIDOCS:.sgi=); \
do \
$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old/patches20I/64dd \
-src $$i.sgi $$i.jp ;\
done
$(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
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