From a37514163b3b4d0ea66ccc57fa3e6837b00d321f Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Sun, 29 Aug 2010 17:50:51 +0000 Subject: [PATCH] Touch generated files to avoid dependency generation warnings and missing dependencies --- commands/advent/Makefile | 6 ++++++ drivers/memory/Makefile | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/commands/advent/Makefile b/commands/advent/Makefile index ef38c5d2d..7d843623d 100644 --- a/commands/advent/Makefile +++ b/commands/advent/Makefile @@ -21,8 +21,14 @@ advtext.h advent1.dat advent2.dat advent3.dat advent4.dat: \ setup advent1.txt advent2.txt advent3.txt advent4.txt ./setup ${.CURDIR} +database.d: touch-genfiles + +touch-genfiles: + [ -e advtext.h ] || touch -t 197001010000.00 advtext.h + CPPFLAGS.advent.c= -DTEXTDIR='"${TEXTDIR}"' CLEANFILES+= ${DATFILES} advtext.h setup .include + diff --git a/drivers/memory/Makefile b/drivers/memory/Makefile index fa9089452..7372f6514 100644 --- a/drivers/memory/Makefile +++ b/drivers/memory/Makefile @@ -15,6 +15,9 @@ INSTALLFLAGS+= -S 8k CPPFLAGS.memory.c+= -I${MINIXSRCDIR} CPPFLAGS.imgrd.c+= -I${.CURDIR}/../ramdisk -T /usr/tmp -imgrd.o: ${.CURDIR}/../ramdisk/image.c +imgrd.d: touch-genfiles + +touch-genfiles: + [ -e ${.CURDIR}/../ramdisk/image.c ] || touch -t 197001010000.00 ${.CURDIR}/../ramdisk/image.c .include -- 2.44.0