aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-03-28 00:09:31 -0500
committerRob Landley <rob@landley.net>2008-03-28 00:09:31 -0500
commit05fbd1e2b4b12eb3b7b33b1d88f41f8defcc4937 (patch)
tree90ba14e9a76c092a99506913a7d1a27d7450a9ba /Makefile
parent50c8c023358645195585f1503bfb97e2fb92c940 (diff)
downloadtoybox-05fbd1e2b4b12eb3b7b33b1d88f41f8defcc4937.tar.gz
Add install target, and make install_flat use scripts/install.sh
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a35d9a2d..713a66d6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ all: toybox
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 @@ instlist: toybox
$(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 \