aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index c70306bb..7e91ded4 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ include kconfig/Makefile
# The long and roundabout sed is to make old versions of sed happy. New ones
# have '\n' so can replace one line with two without all the branches and
# mucking about with hold space.
-gen_config.h: .config
+generated/gen_config.h: .config
sed -n -e 's/^# CONFIG_\(.*\) is not set.*/\1/' \
-e 't notset' -e 'b tryisset' -e ':notset' \
-e 'h' -e 's/.*/#define CFG_& 0/p' \
@@ -46,19 +46,19 @@ bloatcheck: toybox_old toybox_unstripped
toyfiles = main.c lib/*.c \
$(shell scripts/cfg2files.sh < .config | sed 's@\(.*\)@toys/\1.c@')
-# The following still depends on toys/help.h even when it's not there, so *.h
-# isn't sufficient by itself.
+# The following still depends on generated/help.h even when it's not there, so
+# *.h isn't sufficient by itself.
-toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h toys/help.h toys/*.h lib/*.h toys.h
+toybox_unstripped: generated/gen_config.h generated/help.h $(toyfiles) toys/toylist.h toys/*.h lib/*.h toys.h
$(CC) $(CCFLAGS) -I . $(toyfiles) -o toybox_unstripped $(OPTIMIZE)
toybox: toybox_unstripped
$(STRIP) toybox_unstripped -o toybox
-toys/help.c: toys/help.h
+toys/help.c: generated/help.h
-toys/help.h: Config.in toys/Config.in scripts/config2help.py
- scripts/config2help.py Config.in > toys/help.h
+generated/help.h: Config.in toys/Config.in scripts/config2help.py
+ scripts/config2help.py Config.in > generated/help.h
instlist: toybox
$(HOSTCC) $(CCFLAGS) -I . scripts/install.c -o instlist
@@ -69,10 +69,10 @@ install_flat: instlist
@for i in `./instlist`; do ln -s toybox "$(PREFIX)/$$i"; done
clean::
- rm -f toybox toybox_unstripped gen_config.h instlist
+ rm -f toybox toybox_unstripped generated/gen_config.h instlist
distclean: clean
- rm -f toybox_old .config* toys/help.h
+ rm -f toybox_old .config* generated/help.h
test: tests