Makefile revision 1.8
11.8Sjdolecek#	$NetBSD: Makefile,v 1.8 2002/01/27 11:11:35 jdolecek Exp $
21.1Sis
31.1Sis#
41.1Sis# Use this file to regenerate AMIGA and DRACO out of the GENERIC template.
51.1Sis#
61.1Sis
71.5Sisall: AMIGA DRACO INSTALL
81.1Sis
91.4StronAMIGA: GENERIC
101.7Sis	@echo Generating AMIGA...
111.2Sis	@echo -n '# '$$ > $@
121.2Sis	@echo NetBSD$$ >> $@
131.2Sis	@echo '#' >> $@
141.2Sis	@echo '# This file was automatically created. Changes will be' >> $@
151.1Sis	@echo '# lost when running make in this directory.' >> $@
161.1Sis	@echo '#' >> $@
171.7Sis	@echo -n '# Created from: ' >> $@
181.7Sis	@sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
191.4Stron		cpp -undef -P -DAMIGA_CONFIGURATION 2>/dev/null |\
201.8Sjdolecek		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
211.1Sis		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
221.1Sis
231.4StronDRACO: GENERIC
241.7Sis	@echo Generating DRACO...
251.2Sis	@echo -n '# '$$ > $@
261.2Sis	@echo NetBSD$$ >> $@
271.2Sis	@echo '#' >> $@
281.2Sis	@echo '# This file was automatically created. Changes will be' >> $@
291.1Sis	@echo '# lost when running make in this directory.' >> $@
301.1Sis	@echo '#' >> $@
311.7Sis	@echo -n '# Created from: ' >> $@
321.7Sis	@sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
331.4Stron		cpp -undef -P -DDRACO_CONFIGURATION 2>/dev/null |\
341.8Sjdolecek		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
351.1Sis		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
361.1Sis
371.5SisINSTALL: GENERIC
381.7Sis	@echo Generating INSTALL...
391.5Sis	@echo -n '# '$$ > $@
401.5Sis	@echo NetBSD$$ >> $@
411.5Sis	@echo '#' >> $@
421.5Sis	@echo '# This file was automatically created. Changes will be' >> $@
431.5Sis	@echo '# lost when running make in this directory.' >> $@
441.5Sis	@echo '#' >> $@
451.7Sis	@echo -n '# Created from: ' >> $@
461.7Sis	@sed -e '1s/$$NetBSD/NetBSD/' \
471.6Sis		-e 's/	pty	/	pty 2	/' GENERIC |\
481.5Sis		cpp -undef -P \
491.5Sis			-DAMIGA_CONFIGURATION -DDRACO_CONFIGURATION \
501.5Sis			-DINSTALL_CONFIGURATION 2>/dev/null |\
511.8Sjdolecek		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
521.5Sis		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
531.5Sis
541.5SisAMIGA DRACO INSTALL: GENERIC Makefile
55