orphan
[debian/elilo] / choosers / Makefile
index 7860cc84ed5ad9ac047759e124da01027cbee06a..9915f486d2ffe1bc490de8d80f3e0857beaf5eb1 100644 (file)
 # to use this program.
 #
 
-SRCDIR = .
-
-VPATH = $(SRCDIR)
-
-include $(SRCDIR)/../Make.defaults
-include $(SRCDIR)/../Make.rules
-
-TOPDIR=$(SRCDIR)/..
+include ../Make.defaults
+include ../Make.rules
 
+TOPDIR=$(CDIR)/..
 
 FILES=
 
@@ -47,17 +42,13 @@ TARGET=choosers.o
 
 all: $(TARGET)
 
-$(TARGET): check-choosers $(TOPDIR)/Make.defaults $(FILES)
-       $(LD) $(LD3264) -o $@ -r $(FILES)
-
-clean:
-       $(RM) -f $(TARGET) $(FILES)
-
-check-choosers:
-       @if [ -n "$(FILES)" ]; then \
-               exit 0; \
-       else \
+$(TARGET): $(TOPDIR)/Make.defaults $(FILES)
+       @if [ -z "$(FILES)" ]; then \
                echo "You need to define at least one chooser in Make.defaults"; \
                exit 1; \
        fi
+       $(LD) -o $@ -r $(FILES)
+
+clean:
+       $(RM) -f $(TARGET) $(FILES)