]> Zhao Yanbai Git Server - minix.git/commitdiff
Touch generated files to avoid dependency generation warnings and missing dependencies
authorErik van der Kouwe <erik@minix3.org>
Sun, 29 Aug 2010 17:50:51 +0000 (17:50 +0000)
committerErik van der Kouwe <erik@minix3.org>
Sun, 29 Aug 2010 17:50:51 +0000 (17:50 +0000)
commands/advent/Makefile
drivers/memory/Makefile

index ef38c5d2d4a10ea788721b3def3253b6d5fff583..7d843623d17ca20138b092a1eb46b5c5381c0ce5 100644 (file)
@@ -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 <bsd.prog.mk>
+
index fa90894520d930fe105b115bac9307c4326f745c..7372f65142fb50dd2411ce8331b70fc4b82b89ce 100644 (file)
@@ -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 <bsd.prog.mk>