From: Ben Gras Date: Thu, 8 Feb 2007 16:26:20 +0000 (+0000) Subject: don't call mkdep with an absolute path X-Git-Tag: v3.1.3~88 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=9f2f3dd488981dd15f35d29adb32805fef873b97;p=minix.git don't call mkdep with an absolute path --- diff --git a/drivers/at_wini/Makefile b/drivers/at_wini/Makefile index 9f76b906a..cc8d07e08 100644 --- a/drivers/at_wini/Makefile +++ b/drivers/at_wini/Makefile @@ -36,7 +36,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/bios_wini/Makefile b/drivers/bios_wini/Makefile index 42ff49149..daf107dca 100644 --- a/drivers/bios_wini/Makefile +++ b/drivers/bios_wini/Makefile @@ -34,7 +34,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/dp8390/Makefile b/drivers/dp8390/Makefile index 6f7b06e15..87d2ae91c 100644 --- a/drivers/dp8390/Makefile +++ b/drivers/dp8390/Makefile @@ -33,7 +33,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/dpeth/Makefile b/drivers/dpeth/Makefile index 833962b68..726c527cb 100644 --- a/drivers/dpeth/Makefile +++ b/drivers/dpeth/Makefile @@ -32,7 +32,7 @@ install: /usr/sbin/$(DRIVER) ## Generate dependencies depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend ## Clean directory clean: diff --git a/drivers/floppy/Makefile b/drivers/floppy/Makefile index 5be367445..397de8c19 100644 --- a/drivers/floppy/Makefile +++ b/drivers/floppy/Makefile @@ -34,7 +34,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/fxp/Makefile b/drivers/fxp/Makefile index 9cf6ba817..0306488c4 100644 --- a/drivers/fxp/Makefile +++ b/drivers/fxp/Makefile @@ -33,7 +33,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/lance/Makefile b/drivers/lance/Makefile index b6b7eef51..78ab487c1 100644 --- a/drivers/lance/Makefile +++ b/drivers/lance/Makefile @@ -34,7 +34,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/libdriver/Makefile b/drivers/libdriver/Makefile index 5407bfdf1..534ac1a69 100644 --- a/drivers/libdriver/Makefile +++ b/drivers/libdriver/Makefile @@ -27,7 +27,7 @@ clean: rm -f *.o *.bak *.a depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/log/Makefile b/drivers/log/Makefile index af51f725d..bf9caf018 100644 --- a/drivers/log/Makefile +++ b/drivers/log/Makefile @@ -33,7 +33,7 @@ clean: depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/memory/Makefile b/drivers/memory/Makefile index 2db1efbb3..5b77a1c0d 100644 --- a/drivers/memory/Makefile +++ b/drivers/memory/Makefile @@ -50,7 +50,7 @@ clean: cd ramdisk && make clean depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" memory.c ../libdriver/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" memory.c ../libdriver/*.c > .depend cd ramdisk && make depend # Include generated dependencies. diff --git a/drivers/memory/ramdisk/Makefile b/drivers/memory/ramdisk/Makefile index c9722b307..bbf0f2e21 100644 --- a/drivers/memory/ramdisk/Makefile +++ b/drivers/memory/ramdisk/Makefile @@ -104,7 +104,7 @@ passwd: ../../../etc/passwd install -s ../../../etc/$@ $@ depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend proto.gen: $(MAKEDEV) proto.sh proto sh -e proto.sh >proto.gen diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index 965a4bce5..a19a1f8f1 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -33,7 +33,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/printer/Makefile b/drivers/printer/Makefile index 0d63d622e..e216724ec 100644 --- a/drivers/printer/Makefile +++ b/drivers/printer/Makefile @@ -34,7 +34,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/random/Makefile b/drivers/random/Makefile index 547abb38e..0af80f460 100644 --- a/drivers/random/Makefile +++ b/drivers/random/Makefile @@ -41,7 +41,7 @@ clean: depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c aes/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c aes/*.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/readclock/Makefile b/drivers/readclock/Makefile index 04a252a61..2d9a2ebe1 100644 --- a/drivers/readclock/Makefile +++ b/drivers/readclock/Makefile @@ -26,7 +26,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/rtl8139/Makefile b/drivers/rtl8139/Makefile index d37ab9aaa..eef744678 100644 --- a/drivers/rtl8139/Makefile +++ b/drivers/rtl8139/Makefile @@ -34,7 +34,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/sb16/Makefile b/drivers/sb16/Makefile index 1241064de..4105a446f 100644 --- a/drivers/sb16/Makefile +++ b/drivers/sb16/Makefile @@ -34,7 +34,7 @@ clean: rm -f *.o *.bak sb16 sb16_dsp sb16_mixer depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/ti1225/Makefile b/drivers/ti1225/Makefile index e5529e678..dd2512a42 100644 --- a/drivers/ti1225/Makefile +++ b/drivers/ti1225/Makefile @@ -33,7 +33,7 @@ clean: rm -f *.o *.bak $(DRIVER) depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/drivers/tty/Makefile b/drivers/tty/Makefile index 884bc2474..4f891d065 100644 --- a/drivers/tty/Makefile +++ b/drivers/tty/Makefile @@ -40,7 +40,7 @@ clean: rm -f $(DRIVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/kernel/Makefile b/kernel/Makefile index 6f59e3bcb..1b5372614 100755 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -44,7 +44,7 @@ clean: depend: cd system && $(MAKE) -$(MAKEFLAGS) $@ cd $a && $(MAKE) $@ - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # How to build it .c.o: diff --git a/kernel/arch/i386/Makefile b/kernel/arch/i386/Makefile index fe5f4e60c..c7a5dc6a7 100755 --- a/kernel/arch/i386/Makefile +++ b/kernel/arch/i386/Makefile @@ -29,7 +29,7 @@ $(ARCHAR): $(OBJS) aal cr $@ *.o depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c *.s > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c *.s > .depend clean: rm -f *.a *.o *~ diff --git a/kernel/system/Makefile b/kernel/system/Makefile index 237a1e303..68a48ec79 100644 --- a/kernel/system/Makefile +++ b/kernel/system/Makefile @@ -62,7 +62,7 @@ clean: rm -f $(SYSTEM) *.o *~ *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/ds/Makefile b/servers/ds/Makefile index 5f4897320..9ea37eb75 100644 --- a/servers/ds/Makefile +++ b/servers/ds/Makefile @@ -35,7 +35,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/inet/Makefile b/servers/inet/Makefile index 995428357..c2e6559e5 100644 --- a/servers/inet/Makefile +++ b/servers/inet/Makefile @@ -35,7 +35,7 @@ clean: rm -f $(OBJ) inet *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c generic/*.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c generic/*.c > .depend # Include generated dependencies. include .depend diff --git a/servers/init/Makefile b/servers/init/Makefile index 1c5bfce46..7eb05c74c 100644 --- a/servers/init/Makefile +++ b/servers/init/Makefile @@ -31,7 +31,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/is/Makefile b/servers/is/Makefile index eb8b3a6ca..1ad889105 100644 --- a/servers/is/Makefile +++ b/servers/is/Makefile @@ -37,7 +37,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/mfs/Makefile b/servers/mfs/Makefile index 4cb8d35db..1f97664ed 100644 --- a/servers/mfs/Makefile +++ b/servers/mfs/Makefile @@ -32,7 +32,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/pm/Makefile b/servers/pm/Makefile index addc090c0..c6343e89a 100644 --- a/servers/pm/Makefile +++ b/servers/pm/Makefile @@ -36,7 +36,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/rs/Makefile b/servers/rs/Makefile index 77b1068d0..f644950f9 100644 --- a/servers/rs/Makefile +++ b/servers/rs/Makefile @@ -41,7 +41,7 @@ clean: rm -f $(UTIL) $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/servers/vfs/Makefile b/servers/vfs/Makefile index 837d9626d..3521d95a4 100644 --- a/servers/vfs/Makefile +++ b/servers/vfs/Makefile @@ -31,7 +31,7 @@ clean: rm -f $(SERVER) *.o *.bak depend: - /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend + mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend diff --git a/tools/release.sh b/tools/release.sh index a370cb498..2cbfb5052 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -312,7 +312,7 @@ if [ "$USB" -eq 0 ] then date >$RELEASEDIR/CD fi echo " * Chroot build" -chroot $RELEASEDIR "/$XBIN/sh -x /usr/src/tools/chrootmake.sh $XBIN" || exit 1 +chroot $RELEASEDIR "/$XBIN/sh -x /usr/src/tools/chrootmake.sh /$XBIN" || exit 1 echo " * Chroot build done" echo " * Removing bootstrap files" rm -rf $RELEASEDIR/$XBIN