Mercurial > hg > toybox
diff Makefile @ 89:4f5cdc6552da
Add make install_flat.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 31 Jan 2007 14:18:05 -0500 |
parents | 6b933d9c54ac |
children | 7c77c6ec17ee |
line wrap: on
line diff
--- a/Makefile Wed Jan 31 13:31:19 2007 -0500 +++ b/Makefile Wed Jan 31 14:18:05 2007 -0500 @@ -43,8 +43,17 @@ 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*