1# $Id: autoconf.mk,v 1.8 2012/11/19 05:37:48 sjg Exp $
| 1# $Id: autoconf.mk,v 1.9 2017/08/13 20:03:13 sjg Exp $
|
2# 3# @(#) Copyright (c) 1996-2009, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are 10# left intact. 11# 12# Please send copies of changes and bug-fixes to: 13# sjg@crufty.net 14# 15 16.NOPATH: config.h config.status 17
| 2# 3# @(#) Copyright (c) 1996-2009, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are 10# left intact. 11# 12# Please send copies of changes and bug-fixes to: 13# sjg@crufty.net 14# 15 16.NOPATH: config.h config.status 17
|
| 18CONFIGURE_DEPS += ${.CURDIR}/config.h.in ${.CURDIR}/configure 19
|
18.if !target(config.h)
| 20.if !target(config.h)
|
19config.h: ${.CURDIR}/config.h.in config.status
| 21config.h: ${CONFIGURE_DEPS} config.status
|
20 ./config.status 21.endif 22 23.if !target(config.status) 24# avoid the targets behaving differently 25.if exists(${.OBJDIR}/config.status) 26config.status: config.recheck 27.else 28config.status: config.gen 29.endif 30
| 22 ./config.status 23.endif 24 25.if !target(config.status) 26# avoid the targets behaving differently 27.if exists(${.OBJDIR}/config.status) 28config.status: config.recheck 29.else 30config.status: config.gen 31.endif 32
|
31config.recheck: config.h.in ${.CURDIR}/configure
| 33config.recheck: ${CONFIGURE_DEPS}
|
32 ./config.status --recheck 33 @touch $@ 34
| 34 ./config.status --recheck 35 @touch $@ 36
|
35config.gen: config.h.in ${.CURDIR}/configure
| 37config.gen: ${CONFIGURE_DEPS}
|
36 CC="${CC} ${CCMODE}" ${.CURDIR}/configure --no-create ${CONFIGURE_ARGS} 37 @touch $@ config.recheck 38 39CLEANFILES+= config.recheck config.gen config.status *.meta 40.endif 41 42# avoid things blowing up if these are not here... 43# this is not quite per the autoconf manual,
--- 35 unchanged lines hidden --- | 38 CC="${CC} ${CCMODE}" ${.CURDIR}/configure --no-create ${CONFIGURE_ARGS} 39 @touch $@ config.recheck 40 41CLEANFILES+= config.recheck config.gen config.status *.meta 42.endif 43 44# avoid things blowing up if these are not here... 45# this is not quite per the autoconf manual,
--- 35 unchanged lines hidden --- |