PCmake 905 Bytes
#!smake
# PCǥץ Makefile

include $(ROOT)/usr/include/make/PRdefs

APPDIR	  = playseq.naudio

TEXTFILES = Makefile playseq.h playseq.c spec sampleBank.inst

BINFILES  = Midnight.sbk sampleBank.tbl sampleBank.ctl sampleBank.sym

SUBDIRS	  = 

ERASELINE = 'install'
ENDLINE   = 'dummy'
LDIRTV	  =

FILES	  = $(TEXTFILES) $(BINFILES)

default:
	$(INSTALL) -m 666 -F /PR/apps.pc/$(APPDIR) $(FILES)
	perl -ne 'if(/^LDIRT\s*=/){$$_="LDIRT = \$$\(APP\) \$$\(TARGETS\)\n"}print' Makefile |\
	perl $(ROOT)/PR/apps.released/mkPCmake.pl > \
		$(ROOT)/PR/apps.pc/$(APPDIR)/Makefile
#	( \
#	cd $(ROOT)/PR/apps.pc/$(APPDIR) ; \
#	for i in $(TEXTFILES) ; do ( \
#		to_dos $$i /tmp/__pctmp ; \
#	        euctosjis /tmp/__pctmp > $$i ;  \
#	        rm -f /tmp/__pctmp )\
#	done ; \
#	)	
	cp $(ROOT)/PR/apps.released/__elfcom.c $(ROOT)/PR/apps.pc/$(APPDIR)

clean clobber:
	rm -rf $(ROOT)/PR/apps.pc/$(APPDIR)