aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-31 14:18:05 -0500
committerRob Landley <rob@landley.net>2007-01-31 14:18:05 -0500
commitbcfad872188d993efc8d1da4b79058b69e43f019 (patch)
treeefb18570074a6b423ae6a9e41687a2d405b9a06f /Makefile
parenta6d696b74adb08d83b21f8299b5443f31a5f43ec (diff)
downloadtoybox-bcfad872188d993efc8d1da4b79058b69e43f019.tar.gz
Add make install_flat.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3a405c5b..c366b13c 100644
--- a/Makefile
+++ b/Makefile
@@ -43,8 +43,17 @@ toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h
toybox: toybox_unstripped
$(STRIP) toybox_unstripped -o toybox
+
+instlist: toybox
+ $(HOST_CC) -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
+
clean::
- rm -f toybox toybox_old toybox_unstripped gen_config.h
+ rm -f toybox toybox_old toybox_unstripped gen_config.h instlist
distclean: clean
rm -f .config*