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