mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
images/Makefile: sanitize cleaning
Instead of removing everything by means of a few wildcards, let's properly generate the file names to be removed. [v2: fix a typo, thanks to dsafonov@] [v3: resend with a typo fixed for real, this time] Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
ebb7087aea
commit
67bd47878d
1 changed files with 5 additions and 6 deletions
|
|
@ -105,6 +105,7 @@ $(obj)/%.o: $(obj)/%.pb-c.c $(obj)/%.pb-c.h
|
|||
$(obj)/built-in.o: $(addprefix $(obj)/,$(proto-obj-y))
|
||||
$(E) " LINK " $@
|
||||
$(Q) $(LD) $(ldflags-y) -r -o $@ $^
|
||||
cleanup-y += $(obj)/built-in.o
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(MAKECMDGOALS),mrproper)
|
||||
|
|
@ -112,9 +113,7 @@ ifneq ($(MAKECMDGOALS),mrproper)
|
|||
endif
|
||||
endif
|
||||
|
||||
mrproper-y += $(obj)/*.pb-c.c $(obj)/*.pb-c.h
|
||||
cleanup-y += $(obj)/*.o $(obj)/*.d $(obj)/*.s $(obj)/*.i
|
||||
cleanup-y += $(obj)/google/protobuf/*.d
|
||||
cleanup-y += $(obj)/google/protobuf/*.h
|
||||
cleanup-y += $(obj)/google/protobuf/*.c
|
||||
cleanup-y += $(obj)/google/protobuf/*.o
|
||||
cleanup-y += $(call cleanify,$(addprefix $(obj)/,$(proto-obj-y)))
|
||||
cleanup-y += $(call cleanify,$(addprefix $(obj)/,$(proto-obj-y:.o=.pb-c.o)))
|
||||
mrproper-y += $(addprefix $(obj)/,$(proto-obj-y:.o=.pb-c.c))
|
||||
mrproper-y += $(addprefix $(obj)/,$(proto-obj-y:.o=.pb-c.h))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue