Makefile
1.32 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
#
# Makefile for libaudio assets directory
#
include $(ROOT)/usr/include/make/PRdefs
#
# there are inter directory dependencies in the order of build. For example,
# sfx generates aifc files that is later needed in building a bank
#
EXPORTS_SUBDIRS= sounds sfx banks sequences viper ddfonts ddsound
SUBDIRS= sounds sfx banks sequences viper
SGIDOCS=README.jp.sgi
PCDOCS=README.jp.pc
LDIRT=$(SGIDOCS) $(PCDOCS)
COMMONPREF=assets
default: $(SGIDOCS)
$(SUBDIRS_MAKERULE)
$(INSTALL) -m 444 -F /usr/src/PR/assets \
-src README.jp.sgi README.jp
$(INSTALL) -m 444 -F /usr/src/PR/assets -src Makefile.ship -O Makefile
exports: $(_FORCE)
$(EXPORTS_SUBDIRS_MAKERULE)
install: $(SGIDOCS)
$(EXPORTS_SUBDIRS_MAKERULE)
$(INSTALL) -m 444 -F /usr/src/PR/assets \
-src README.jp.sgi README.jp
$(INSTALL) -m 444 -F /usr/src/PR/assets -src Makefile.ship -O Makefile
$(COMMONTARGS): $(_FORCE)
$(SUBDIRS_MAKERULE)
rm -rf $(LDIRT)
include $(COMMONRULES)
README.jp.sgi: README.jp
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}' README.jp > README.jp.sgi
README.jp.pc: README.jp
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}' README.jp > README.jp.pc