mirror of
https://github.com/sheumann/hush.git
synced 2025-01-27 21:33:05 +00:00
fix dependencies so that compressed usage gets rebuilt if
a) include/usage.h is changed, and b) after "make clean".
This commit is contained in:
parent
4ae905a31c
commit
e3324502a5
12
Makefile
12
Makefile
@ -436,13 +436,16 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y)
|
ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y)
|
||||||
USAGE_BIN:=scripts/usage
|
USAGE_BIN:=scripts/usage
|
||||||
$(USAGE_BIN): $(top_srcdir)/scripts/usage.c .config
|
$(USAGE_BIN): $(top_srcdir)/scripts/usage.c .config \
|
||||||
|
$(top_srcdir)/include/usage.h
|
||||||
$(do_link.h)
|
$(do_link.h)
|
||||||
|
|
||||||
DEP_INCLUDES += include/usage_compressed.h
|
DEP_INCLUDES += include/usage_compressed.h
|
||||||
|
|
||||||
include/usage_compressed.h: .config $(USAGE_BIN) $(top_srcdir)/scripts/usage_compressed
|
include/usage_compressed.h: .config $(USAGE_BIN) \
|
||||||
$(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@
|
$(top_srcdir)/scripts/usage_compressed
|
||||||
|
$(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed \
|
||||||
|
"$(top_builddir)/scripts" > $@
|
||||||
endif # CONFIG_FEATURE_COMPRESS_USAGE
|
endif # CONFIG_FEATURE_COMPRESS_USAGE
|
||||||
|
|
||||||
# workaround alleged bug in make-3.80, make-3.81
|
# workaround alleged bug in make-3.80, make-3.81
|
||||||
@ -470,7 +473,8 @@ clean:
|
|||||||
docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
|
docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
|
||||||
docs/busybox.net/BusyBox.html busybox.links \
|
docs/busybox.net/BusyBox.html busybox.links \
|
||||||
libbusybox.so* \
|
libbusybox.so* \
|
||||||
.config.old busybox busybox_unstripped
|
.config.old busybox busybox_unstripped \
|
||||||
|
include/usage_compressed.h scripts/usage
|
||||||
- rm -r -f _install testsuite/links
|
- rm -r -f _install testsuite/links
|
||||||
- find . -name .\*.flags -o -name \*.o -o -name \*.om -o -name \*.syn \
|
- find . -name .\*.flags -o -name \*.o -o -name \*.om -o -name \*.syn \
|
||||||
-o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f
|
-o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user