From 207cadacd3cef42fa918981423c951f49443f032 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 3 Oct 2013 03:18:00 -0500 Subject: 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). --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3