summaryrefslogtreecommitdiffstats
path: root/collage/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 /collage/Makefile
parent702e6975d40b891f3a6699c54d5ef5ab9fa62f91 (diff)
downloadanaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.tar.gz
anaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.tar.xz
anaconda-b085dbf9fa656f8eeefb7eeaa6c532647f1cf388.zip
fixed dependency crap
Diffstat (limited to 'collage/Makefile')
-rw-r--r--collage/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/collage/Makefile b/collage/Makefile
index b8a645eda..dd9bcc2d1 100644
--- a/collage/Makefile
+++ b/collage/Makefile
@@ -4,6 +4,14 @@ CFLAGS = -Wall -g
LDFLAGS = -g
LOADLIBES = -L../isys -lz -lisys -lresolv -lpopt
+ifeq (.depend,$(wildcard .depend))
+TARGET=all
+else
+TARGET=depend all
+endif
+
+everything: $(TARGET)
+
all: collage
collage: collage.o commands.o idmap.o ls.o
@@ -15,3 +23,10 @@ install:
clean:
rm -f collage *.o
+
+depend:
+ $(CPP) -M $(CFLAGS) *.c > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif