NetBSD/sys/arch/amiga/conf/Makefile
lukem c13ae5b7a9 Use m4 instead of cpp to generate the various kernel configurations,
since cpp is the "C compiler pre-processor", and as such, isn't really
suited to parsing non-C-language files...
2002-06-18 17:39:39 +00:00

31 lines
809 B
Makefile

# $NetBSD: Makefile,v 1.10 2002/06/18 17:39:39 lukem Exp $
#
# Use this file to regenerate AMIGA, DRACO, GENERIC, INSTALL and WSCONS
# out of the GENERIC.in template.
#
all: AMIGA DRACO GENERIC INSTALL WSCONS
AMIGA: __generate_config
DRACO: __generate_config
GENERIC: __generate_config
INSTALL: __generate_config
WSCONS: __generate_config
__generate_config: .USE GENERIC.in Makefile
@echo Generating ${.TARGET}...
@echo -n '# '$$ > ${.TARGET}
@echo NetBSD$$ >> ${.TARGET}
@echo '#' >> ${.TARGET}
@echo '# This file was automatically created.' >> ${.TARGET}
@echo '# Changes will be lost when make is run in this directory.' >> ${.TARGET}
@echo '#' >> ${.TARGET}
@echo -n '# Created from: ' >> ${.TARGET}
sed -e '1s/$$NetBSD/NetBSD/' GENERIC.in |\
m4 -P -DM4_Target=${.TARGET} >> ${.TARGET}