PCmake 995 Bytes
#!smake
# PCǥץ Makefile

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

APPDIR	  = morphfaces

TEXTFILES = Makefile cfb.c data.c dram_stack.c dynamic.c \
	    mcode.h medit.c medit2c.c morph.c morphfaces.c \
	    morphfaces.h mstatic.h n_aux.h NOTES spec static.c zbuf.c

BINFILES  = medit2c ed.ppm ed_tj.t ed_tj.v libaux.a tj.ppm

SUBDIRS	  = 

ERASELINE = 'install'
ENDLINE   = 'static\.o'
LDIRTV	  = 'ppm2cTex', 'medit', 'medit2c', 'load.map', 'mstatic.h', 'mcode.h'

FILES	  = $(TEXTFILES) $(BINFILES)

default:
	$(INSTALL) -m 666 -F /PR/apps.pc/$(APPDIR) $(FILES)
	perl $(ROOT)/PR/apps.released/mkPCmake.pl Makefile > \
		$(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)