Makefile 2.7 KB
#
# Makefile for released apps directory
#

PRDEPTH=..
include $(PRDEPTH)/PRdefs

EXPORTS_SUBDIRS =	Texture

#
# please add these alphabetically...
#
# NOTE: gng is a special case; the sources there get installed to the
# "gng_noship" product.
# tile_rect3d.disk is also a special case; the sources there get inst-
# alled to the "64dd" product.
#
SUBDIRS = \
	autofill	\
	blockmonkey	\
	bumpmap		\
	chrome		\
	ci8fb		\
	cptest		\
	ddspgame	\
	detail		\
	eeptest		\
	fault		\
	flash		\
	fogworld	\
	gbpak		\
	ginv		\
	gl		\
	greset		\
	ground		\
	gs2dex		\
	gtdemo		\
	hostio		\
	lights		\
	mipmap		\
	morphcube	\
	morphfaces	\
	motortest	\
	nnsample1	\
	nnsample2	\
	nosPak		\
	onetri		\
	onetri-fpal	\
	overlay		\
	pfs		\
	playseq		\
	playseq.naudio	\
	polyline	\
	print		\
	reboot		\
	simple		\
	soundmonkey	\
	spgame		\
	spin		\
	spritemonkey	\
	spritemonkeyEX	\
	sramtest	\
	terrain		\
	texlight	\
	threadmonkey    \
	tile_rect2d 	\
	tile_rect3d	\
	topgun		\
	tron		\
	turbomonkey	\
	voice

COMMONPREF = apps.released

SGIDOCS = README_DEMOS.jp.sgi 
#	README_DEMOS_64DD.jp.sgi	\
#	README_DEMOS_NAUDIO.jp.sgi 

PCDOCS = README_DEMOS.jp.pc

LDIRT = $(SGIDOCS) $(PCDOCS)

default : $(SGIDOCS)
	$(SUBDIRS_MAKERULE)

install: $(SGIDOCS)
	$(EXPORTS_SUBDIRS_MAKERULE)
	$(SUBDIRS_MAKERULE)
	cd Texture ; make install ; cd ..
	$(INSTALL) -m 444 -F /usr/src/PR/demos	\
		-src README_DEMOS.jp.sgi README_DEMOS.jp
	$(INSTALL) -m 444 -F /usr/src/PR/demos	\
		-src Makefile.src Makefile
#	$(INSTALL) -m 444 -F /usr/src/PR/demos	\
#		-src README_DEMOS_64DD.jp.sgi README_DEMOS_64DD.jp
#	$(INSTALL) -m 444 -F /usr/src/PR/demos	\
#		-src README_DEMOS_NAUDIO.jp.sgi README_DEMOS_NAUDIO.jp

exports:$(_FORCE)
	$(EXPORTS_SUBDIRS_MAKERULE)

$(COMMONTARGS): $(_FORCE)
	$(EXPORTS_SUBDIRS_MAKERULE)
	$(SUBDIRS_MAKERULE)
	rm -rf $(LDIRT)

include $(COMMONRULES)

README_DEMOS.jp.sgi: README_DEMOS.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_DEMOS.jp > README_DEMOS.jp.sgi

README_DEMOS_64DD.jp.sgi: README_DEMOS_64DD.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_DEMOS_64DD.jp > README_DEMOS_64DD.jp.sgi

README_DEMOS_NAUDIO.jp.sgi: README_DEMOS_NAUDIO.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_DEMOS_NAUDIO.jp > README_DEMOS_NAUDIO.jp.sgi

README_DEMOS.jp.pc: README_DEMOS.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_DEMOS.jp > README_DEMOS.jp.pc