changeset 273:e589555d6416

Add install target, and make install_flat use scripts/install.sh
author Rob Landley <rob@landley.net>
date Fri, 28 Mar 2008 00:09:31 -0500
parents a5652aa22f38
children 5b948171e495
files Makefile
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Mar 26 00:54:56 2008 -0500
+++ b/Makefile	Fri Mar 28 00:09:31 2008 -0500
@@ -6,7 +6,7 @@
 toybox toybox_unstripped: .config *.[ch] lib/*.[ch] toys/*.[ch] scripts/*
 	scripts/make.sh
 
-.PHONY: clean distclean baseline bloatcheck install_flat test tests help
+.PHONY: clean distclean baseline bloatcheck install install_flat test tests help
 
 include kconfig/Makefile
 
@@ -27,9 +27,10 @@
 	$(HOSTCC) $(CCFLAGS) -I . scripts/install.c -o instlist
 
 install_flat: instlist
-	@mkdir -p $(PREFIX)/
-	@cp toybox $(PREFIX)/
-	@for i in `./instlist`; do ln -s toybox "$(PREFIX)/$$i"; done
+	scripts/install.sh --symlink --force
+
+install:
+	scripts/install.sh --long --symlink --force
 
 clean::
 	rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \