summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-06-11 20:21:25 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-06-11 20:21:25 +0000
commit59f7ce778f424104e1d0df70e7e53d39ec2e51a7 (patch)
tree37ffc2264cfea5fed41265c0b46f0d50dddf4fb9 /mdk-stage1
parent388d15609543844c49895d0ef9ee187779eb1bcf (diff)
downloaddrakx-59f7ce778f424104e1d0df70e7e53d39ec2e51a7.tar
drakx-59f7ce778f424104e1d0df70e7e53d39ec2e51a7.tar.gz
drakx-59f7ce778f424104e1d0df70e7e53d39ec2e51a7.tar.bz2
drakx-59f7ce778f424104e1d0df70e7e53d39ec2e51a7.tar.xz
drakx-59f7ce778f424104e1d0df70e7e53d39ec2e51a7.zip
change handling of .depend in Makefile
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index 873a350f5..f1369b26c 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -161,7 +161,7 @@ PCMCIA_DEFS = -DENABLE_PCMCIA
endif
-all: dirs $(BINS)
+all: dirs .depend $(BINS)
dirs:
@for n in . $(DIRS); do \
@@ -192,19 +192,19 @@ stage1-full: $(STAGE1OBJS-FULL) $(STAGE1_OWN_LIBS) $(STAGE1_NETWORK_LIBS) $(FRON
$(INITOBJS): %.o: %.c
$(COMPILE) $(INIT_DEFS) -c $<
-$(STAGE1OBJS-CDROM): %-CDROM.o: %.c .depend
+$(STAGE1OBJS-CDROM): %-CDROM.o: %.c
$(COMPILE) $(INCLUDES) $(CDROM_DEFS) -c $< -o $@
-$(STAGE1OBJS-DISK): %-DISK.o: %.c .depend
+$(STAGE1OBJS-DISK): %-DISK.o: %.c
$(COMPILE) $(INCLUDES) $(DISK_DEFS) -c $< -o $@
-$(STAGE1OBJS-NETWORK): %-NETWORK.o: %.c .depend
+$(STAGE1OBJS-NETWORK): %-NETWORK.o: %.c
$(COMPILE) $(INCLUDES) $(NETWORK_DEFS) -c $< -o $@
-$(STAGE1OBJS-FULL): %-FULL.o: %.c .depend
+$(STAGE1OBJS-FULL): %-FULL.o: %.c
$(COMPILE) $(INCLUDES) $(PCMCIA_DEFS) -c $< -o $@
-.c.o: .depend
+.c.o:
$(COMPILE) $(INCLUDES) -c $<
@@ -225,8 +225,8 @@ tar-mkinitrd_helper: clean
rm -rf mkinitrd_helper-subdir
-.depend:
- $(CPP) $(CFLAGS) -DHAVE_CONFIG_H -M $(ALLSRC) > .depend
+.depend: $(ALLSRC) *.h
+ $(CPP) $(CFLAGS) -M $(ALLSRC) > .depend
ifeq (.depend,$(wildcard .depend))
include .depend