Makefile 1.32 KB
#
# 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