aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-10-03 03:18:00 -0500
committerRob Landley <rob@landley.net>2013-10-03 03:18:00 -0500
commit207cadacd3cef42fa918981423c951f49443f032 (patch)
tree2633a186220f6265f98a0e2f582ede612121e436 /Makefile
parent7dc773bad5dc436518b822ba8c8ae400b5f36272 (diff)
downloadtoybox-207cadacd3cef42fa918981423c951f49443f032.tar.gz
Switch flag generation from shell to C.
This should actually generate FLAG_longopt 0 #defines for disabled bare longopts (ala ls without --color). Put temporary executables under "generated" (including instlist for install).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 7b583ed0..688926bf 100644
--- a/Makefile
+++ b/Makefile
@@ -25,16 +25,16 @@ baseline: toybox_unstripped
bloatcheck: toybox_old toybox_unstripped
@scripts/bloatcheck toybox_old toybox_unstripped
-instlist: toybox
- $(HOSTCC) -I . scripts/install.c -o instlist
+generated/instlist: toybox
+ $(HOSTCC) -I . scripts/install.c -o generated/instlist
-install_flat: instlist
+install_flat: generated/instlist
scripts/install.sh --symlink --force
install:
scripts/install.sh --long --symlink --force
-uninstall_flat: instlist
+uninstall_flat: generated/instlist
scripts/install.sh --uninstall
uninstall:
@@ -42,9 +42,10 @@ uninstall:
clean::
rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \
- generated/newtoys.h generated/globals.h instlist testdir \
- generated/Config.probed generated/oldtoys.h \
- generated/portability.h .singleconfig
+ generated/newtoys.h generated/globals.h testdir \
+ generated/Config.probed generated/oldtoys.h generated/flags.h \
+ generated/portability.h .singleconfig generated/instlist \
+ generated/mkflags
distclean: clean
rm -f toybox_old .config* generated/help.h