mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
Makefile: fixup make distclean after kconfig build in BUILD_DIR
We don't actually need to explicitly clean the kconfig stuff, as distclean already removes the entire BUILD_DIR, but fix up the packag/config makefile to do the right thing if make clean/distclean is called manually for completeness. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
cf4689f8b1
commit
8e29430410
1
Makefile
1
Makefile
@ -578,7 +578,6 @@ ifeq ($(O),output)
|
|||||||
rm -rf $(O)
|
rm -rf $(O)
|
||||||
endif
|
endif
|
||||||
rm -rf $(CONFIG_DIR)/.config $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.config.cmd $(CONFIG_DIR)/.auto.deps
|
rm -rf $(CONFIG_DIR)/.config $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.config.cmd $(CONFIG_DIR)/.auto.deps
|
||||||
-$(MAKE) -C $(CONFIG) distclean
|
|
||||||
|
|
||||||
flush:
|
flush:
|
||||||
rm -f $(BUILD_DIR)/tgt-config.cache
|
rm -f $(BUILD_DIR)/tgt-config.cache
|
||||||
|
@ -2,6 +2,7 @@ src := .
|
|||||||
top_srcdir=../../
|
top_srcdir=../../
|
||||||
top_builddir=../../
|
top_builddir=../../
|
||||||
srctree := .
|
srctree := .
|
||||||
|
obj ?= .
|
||||||
|
|
||||||
include Makefile.kconfig
|
include Makefile.kconfig
|
||||||
#HOSTCFLAGS+=-Dinline="" -include foo.h
|
#HOSTCFLAGS+=-Dinline="" -include foo.h
|
||||||
@ -42,11 +43,11 @@ $(obj)/%:: $(src)/%_shipped
|
|||||||
$(Q)cat $< > $@
|
$(Q)cat $< > $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(Q)rm -f $(clean-files)
|
$(Q)rm -f $(addprefix $(obj)/,$(clean-files))
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(Q)rm -f $(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
|
$(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
|
||||||
$(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
|
$(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
|
||||||
mconf .depend
|
mconf .depend)
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
.PHONY: FORCE clean distclean
|
.PHONY: FORCE clean distclean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user