summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sutils/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/sutils/Makefile b/sutils/Makefile
index e06ef317..47209a68 100644
--- a/sutils/Makefile
+++ b/sutils/Makefile
@@ -26,15 +26,22 @@ installationdir = $(sbindir)
SCRIPTS = e2os.sh
SRCS = reboot.c halt.c fsck.c fstab.c clookup.c $(SCRIPTS)
LCLHDRS = fstab.h
+DIST_FILES = MAKEDEV.sh
OBJS = $(filter-out $(SCRIPTS),$(SRCS:.c=.o))
include ../Makeconf
+all: MAKEDEV
+install: $(prefix)/dev/MAKEDEV
+
fsck: fstab.o clookup.o
reboot halt fsck: ../libshouldbeinlibc/libshouldbeinlibc.a
+$(filter-out $(special-targets), $(targets)): %: %.o
+
+$(prefix)/dev/MAKEDEV: MAKEDEV
+ $(INSTALL_PROGRAM) MAKEDEV $(prefix)/dev/MAKEDEV
+
%: %.sh $(top_srcdir)/sh-version.sed
sed -f $(top_srcdir)/sh-version.sed < $< > $@
-
-$(filter-out $(special-targets), $(targets)): %: %.o