summaryrefslogtreecommitdiffstats
path: root/ddcprobe/Makefile
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-09 16:26:45 +0000
committerErik Troan <ewt@redhat.com>2000-05-09 16:26:45 +0000
commitb085dbf9fa656f8eeefb7eeaa6c532647f1cf388 (patch)
tree4e877f88ec463af51627d5aa361edddcf52f3e3d /ddcprobe/Makefile
parent702e6975d40b891f3a6699c54d5ef5ab9fa62f91 (diff)
downloadanaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.tar.gz
anaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.tar.xz
anaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.zip
fixed dependency crap
Diffstat (limited to 'ddcprobe/Makefile')
-rw-r--r--ddcprobe/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/ddcprobe/Makefile b/ddcprobe/Makefile
index bde30e509..728c17ceb 100644
--- a/ddcprobe/Makefile
+++ b/ddcprobe/Makefile
@@ -2,6 +2,14 @@ CFLAGS=-Wall -O -g# -DDEBUG
TARGETS=ddcprobe svgamodes ddcxinfo modetest libvbe.a
+ifeq (.depend,$(wildcard .depend))
+TARGET=all
+else
+TARGET=depend all
+endif
+
+everything: $(TARGET)
+
all: $(TARGETS)
install: $(TARGETS)
@@ -28,3 +36,10 @@ $(DESTDIR)/usr/lib/libvbe.a:
clean:
$(RM) $(TARGETS) *.o core
+
+depend:
+ $(CPP) -M $(CFLAGS) *.c > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif