# 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=
ifeq ($(CONFIG_localfs),y)
# XXX: does not trigger recompile when changing filesystem selection
# without doing make clean.
#
-$(TARGET): check-filesystems $(TOPDIR)/Make.defaults $(FILES)
- $(LD) $(LD3264) -r -o $@ $(FILES)
-
-clean:
- $(RM) -f $(TARGET) $(FILES)
-
-check-filesystems:
- @if [ -n "$(FILES)" ]; then \
- exit 0; \
- else \
+$(TARGET): $(TOPDIR)/Make.defaults $(FILES)
+ @if [ -z "$(FILES)" ]; then \
echo "You need to define at least one filesystem in Make.defaults"; \
exit 1; \
fi
+ $(LD) -r -o $@ $(FILES)
+
+clean:
+ $(RM) -f $(TARGET) $(FILES)