PCmake 1.99 KB
#
# Makefile for released apps directory
#

PRDEPTH=..
include $(PRDEPTH)/PRdefs

#
# please add these alphabetically...
#
SUBDIRS = \
	Texture		\
	autofill	\
	blockmonkey	\
	bumpmap		\
	chrome		\
	ci8fb		\
	ddspgame	\
	detail		\
	eeptest		\
	fault		\
	flash		\
	fogworld	\
	gbpak		\
	ginv		\
	gl		\
	ground		\
	gs2dex		\
	gtdemo		\
	lights		\
	mipmap		\
	morphcube	\
	morphfaces	\
	motortest	\
	nnsample1	\
	nnsample2	\
	nosPak		\
	onetri		\
	onetri-fpal	\
	overlay		\
	pfs		\
	playseq		\
	playseq.naudio	\
	polyline	\
	simple		\
	soundmonkey	\
	spgame		\
	sramtest	\
	terrain		\
	texlight	\
	threadmonkey	\
	tile_rect2d 	\
	tile_rect3d	\
	topgun		\
	tron		\
	turbomonkey	\
	spritemonkey	\
	spritemonkeyEX  \
	voice

SUBDIRS_PC_ONLY = 	\
	host_test	\
	hostio		\
	reboot

COMMONPREF = apps.released

PCDOCS = ../apps.pc/README_DEMOS.jp
#	 ../apps.pc/README_DEMOS_64DD.jp \
#	 ../apps.pc/README_DEMOS_NAUDIO.jp

LDIRT = $(PCDOCS)

default : $(PCDOCS) $(SUBDIRS)
	for i in $(SUBDIRS) ; do ( \
		echo === $$i === ; \
		cd ../apps.released/$$i ; \
		make -f PCmake ; \
	) \
	done

$(COMMONTARGS): $(_FORCE)
	( cd ../apps.pc ;\
	rm -rf $(SUBDIRS) ;\
	rm -rf $(LDIRT)  )

include $(COMMONRULES)

../apps.pc/README_DEMOS.jp: ../apps.released/README_DEMOS.jp
	perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS.jp > ../apps.pc/README_DEMOS.jp

../apps.pc/README_DEMOS_64DD.jp: ../apps.released/README_DEMOS_64DD.jp
	perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS_64DD.jp > ../apps.pc/README_DEMOS_64DD.jp

../apps.pc/README_DEMOS_NAUDIO.jp: ../apps.released/README_DEMOS_NAUDIO.jp
	perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS_NAUDIO.jp > ../apps.pc/README_DEMOS_NAUDIO.jp