Home | History | Annotate | Line # | Download | only in conf
Makefile revision 1.9
      1  1.9  jandberg #	$NetBSD: Makefile,v 1.9 2002/03/13 20:23:44 jandberg Exp $
      2  1.1        is 
      3  1.1        is #
      4  1.1        is # Use this file to regenerate AMIGA and DRACO out of the GENERIC template.
      5  1.1        is #
      6  1.1        is 
      7  1.9  jandberg all: AMIGA DRACO INSTALL WSCONS
      8  1.1        is 
      9  1.4      tron AMIGA: GENERIC
     10  1.7        is 	@echo Generating AMIGA...
     11  1.2        is 	@echo -n '# '$$ > $@
     12  1.2        is 	@echo NetBSD$$ >> $@
     13  1.2        is 	@echo '#' >> $@
     14  1.2        is 	@echo '# This file was automatically created. Changes will be' >> $@
     15  1.1        is 	@echo '# lost when running make in this directory.' >> $@
     16  1.1        is 	@echo '#' >> $@
     17  1.7        is 	@echo -n '# Created from: ' >> $@
     18  1.7        is 	@sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
     19  1.4      tron 		cpp -undef -P -DAMIGA_CONFIGURATION 2>/dev/null |\
     20  1.8  jdolecek 		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
     21  1.1        is 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
     22  1.1        is 
     23  1.4      tron DRACO: GENERIC
     24  1.7        is 	@echo Generating DRACO...
     25  1.2        is 	@echo -n '# '$$ > $@
     26  1.2        is 	@echo NetBSD$$ >> $@
     27  1.2        is 	@echo '#' >> $@
     28  1.2        is 	@echo '# This file was automatically created. Changes will be' >> $@
     29  1.1        is 	@echo '# lost when running make in this directory.' >> $@
     30  1.1        is 	@echo '#' >> $@
     31  1.7        is 	@echo -n '# Created from: ' >> $@
     32  1.7        is 	@sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
     33  1.4      tron 		cpp -undef -P -DDRACO_CONFIGURATION 2>/dev/null |\
     34  1.8  jdolecek 		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
     35  1.1        is 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
     36  1.1        is 
     37  1.5        is INSTALL: GENERIC
     38  1.7        is 	@echo Generating INSTALL...
     39  1.5        is 	@echo -n '# '$$ > $@
     40  1.5        is 	@echo NetBSD$$ >> $@
     41  1.5        is 	@echo '#' >> $@
     42  1.5        is 	@echo '# This file was automatically created. Changes will be' >> $@
     43  1.5        is 	@echo '# lost when running make in this directory.' >> $@
     44  1.5        is 	@echo '#' >> $@
     45  1.7        is 	@echo -n '# Created from: ' >> $@
     46  1.7        is 	@sed -e '1s/$$NetBSD/NetBSD/' \
     47  1.6        is 		-e 's/	pty	/	pty 2	/' GENERIC |\
     48  1.5        is 		cpp -undef -P \
     49  1.5        is 			-DAMIGA_CONFIGURATION -DDRACO_CONFIGURATION \
     50  1.5        is 			-DINSTALL_CONFIGURATION 2>/dev/null |\
     51  1.8  jdolecek 		sed -e 's/\([ 	][ 	]*\)\#\([^ ]\)/\1# \2/' |\
     52  1.5        is 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
     53  1.5        is 
     54  1.9  jandberg #
     55  1.9  jandberg # Generate WSCONS by uncommenting needed things and commenting
     56  1.9  jandberg # out ite.
     57  1.9  jandberg #
     58  1.9  jandberg WSCONS: GENERIC
     59  1.9  jandberg 	@echo Generating $@ ...
     60  1.9  jandberg 	@echo -n '# '$$ > $@
     61  1.9  jandberg 	@echo NetBSD$$ >> $@
     62  1.9  jandberg 	@echo '#' >> $@
     63  1.9  jandberg 	@echo '# This file was automatically created. Changes will be' >> $@
     64  1.9  jandberg 	@echo '# lost when running make in this directory.' >> $@
     65  1.9  jandberg 	@echo '#' >> $@
     66  1.9  jandberg 	@echo -n '# Created from: ' >> $@
     67  1.9  jandberg 	@cat GENERIC | \
     68  1.9  jandberg 		sed -e 's/^ite/#ite/' | \
     69  1.9  jandberg 		sed -e 's/^grf/#grf/' | \
     70  1.9  jandberg 		sed -e 's/^#ws/ws/' | \
     71  1.9  jandberg 		sed -e 's/^#amidisplay/amidisplay/' | \
     72  1.9  jandberg 		sed -e 's/^#\(options.*[[:<:]]WS.*\)/\1/' | \
     73  1.9  jandberg 		sed -e 's/^#\(options.*[[:<:]]FONT_.*\)/\1/' | \
     74  1.9  jandberg 		cpp -undef -P 2>/dev/null \
     75  1.9  jandberg 			-DAMIGA_CONFIGURATION \
     76  1.9  jandberg 			-DDRACO_CONFIGURATION | \
     77  1.9  jandberg 		sed -e '1s/$$NetBSD/NetBSD/' | \
     78  1.9  jandberg 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' | \
     79  1.9  jandberg 		cat >>$@
     80  1.9  jandberg 
     81  1.9  jandberg AMIGA DRACO INSTALL WSCONS: GENERIC Makefile
     82