31 lines
809 B
Makefile
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}
|