mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
Makefiles: remove @true
Apparently @true was used as a rule for any target which should have a non-empty rule doing nothing. For this, there's a "<target>: ;" syntax, let's use this and eliminate an unnecessary fork/exec :) Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
f5ccecbdf2
commit
15a757f6be
3
Makefile
3
Makefile
@ -311,8 +311,7 @@ endif
|
||||
tar-name := $(shell echo $(head-name) | sed -e 's/^v//g')
|
||||
criu-$(tar-name).tar.bz2:
|
||||
git archive --format tar --prefix 'criu-$(tar-name)/' $(head-name) | bzip2 > $@
|
||||
dist tar: criu-$(tar-name).tar.bz2
|
||||
@true
|
||||
dist tar: criu-$(tar-name).tar.bz2 ;
|
||||
.PHONY: dist tar
|
||||
|
||||
tags:
|
||||
|
@ -41,8 +41,7 @@ install-compel: $(compel-install-targets)
|
||||
$(Q) $(MAKE) $(build)=compel/plugins install
|
||||
.PHONY: install-compel
|
||||
|
||||
install: install-man install-lib install-criu install-compel
|
||||
@true
|
||||
install: install-man install-lib install-criu install-compel ;
|
||||
.PHONY: install
|
||||
|
||||
uninstall:
|
||||
|
@ -57,8 +57,7 @@ pie: criu/pie/pie.lib.a
|
||||
$(Q) $(MAKE) $(build)=criu/pie all
|
||||
.PHONY: pie
|
||||
|
||||
criu/pie/%: pie
|
||||
@true
|
||||
criu/pie/%: pie ;
|
||||
|
||||
#
|
||||
# CRIU executable
|
||||
|
@ -29,8 +29,7 @@ install:
|
||||
@cp scripts/tools.mk $(dir)
|
||||
@cp scripts/utils.mk $(dir)
|
||||
|
||||
all:
|
||||
@true
|
||||
all: ;
|
||||
|
||||
clean:
|
||||
$(call msg-clean, "nmk")
|
||||
|
@ -281,8 +281,7 @@ endif
|
||||
|
||||
#
|
||||
# Main phony rule.
|
||||
all: $(all-y)
|
||||
@true
|
||||
all: $(all-y) ;
|
||||
.PHONY: all
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user