2002-06-18 21:39:39 +04:00
|
|
|
# $NetBSD: Makefile,v 1.10 2002/06/18 17:39:39 lukem Exp $
|
1999-02-04 22:01:37 +03:00
|
|
|
|
|
|
|
#
|
2002-06-18 21:39:39 +04:00
|
|
|
# Use this file to regenerate AMIGA, DRACO, GENERIC, INSTALL and WSCONS
|
|
|
|
# out of the GENERIC.in template.
|
1999-02-04 22:01:37 +03:00
|
|
|
#
|
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
all: AMIGA DRACO GENERIC INSTALL WSCONS
|
1999-02-04 22:01:37 +03:00
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
AMIGA: __generate_config
|
1999-02-04 22:01:37 +03:00
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
DRACO: __generate_config
|
1999-02-04 22:01:37 +03:00
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
GENERIC: __generate_config
|
2000-04-02 00:21:27 +04:00
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
INSTALL: __generate_config
|
|
|
|
|
|
|
|
WSCONS: __generate_config
|
2002-03-13 23:23:44 +03:00
|
|
|
|
2002-06-18 21:39:39 +04:00
|
|
|
__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}
|