1 1.14 apb # $NetBSD: Makefile,v 1.14 2008/10/25 22:27:36 apb Exp $ 2 1.1 is 3 1.1 is # 4 1.12 lukem # Use this file to regenerate DRACO, GENERIC, INSTALL 5 1.10 lukem # out of the GENERIC.in template. 6 1.1 is # 7 1.1 is 8 1.12 lukem all: DRACO GENERIC INSTALL 9 1.5 is 10 1.10 lukem DRACO: __generate_config 11 1.10 lukem 12 1.10 lukem GENERIC: __generate_config 13 1.10 lukem 14 1.10 lukem INSTALL: __generate_config 15 1.10 lukem 16 1.10 lukem __generate_config: .USE GENERIC.in Makefile 17 1.10 lukem @echo Generating ${.TARGET}... 18 1.10 lukem @echo -n '# '$$ > ${.TARGET} 19 1.10 lukem @echo NetBSD$$ >> ${.TARGET} 20 1.10 lukem @echo '#' >> ${.TARGET} 21 1.10 lukem @echo '# This file was automatically created.' >> ${.TARGET} 22 1.10 lukem @echo '# Changes will be lost when make is run in this directory.' >> ${.TARGET} 23 1.10 lukem @echo '#' >> ${.TARGET} 24 1.10 lukem @echo -n '# Created from: ' >> ${.TARGET} 25 1.14 apb ${TOOL_SED} -e '1s/$$NetBSD/NetBSD/' GENERIC.in |\ 26 1.10 lukem m4 -P -DM4_Target=${.TARGET} >> ${.TARGET} 27