Commit 15a757f6 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

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: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent f5ccecbd
...@@ -311,8 +311,7 @@ endif ...@@ -311,8 +311,7 @@ endif
tar-name := $(shell echo $(head-name) | sed -e 's/^v//g') tar-name := $(shell echo $(head-name) | sed -e 's/^v//g')
criu-$(tar-name).tar.bz2: criu-$(tar-name).tar.bz2:
git archive --format tar --prefix 'criu-$(tar-name)/' $(head-name) | bzip2 > $@ git archive --format tar --prefix 'criu-$(tar-name)/' $(head-name) | bzip2 > $@
dist tar: criu-$(tar-name).tar.bz2 dist tar: criu-$(tar-name).tar.bz2 ;
@true
.PHONY: dist tar .PHONY: dist tar
tags: tags:
......
...@@ -41,8 +41,7 @@ install-compel: $(compel-install-targets) ...@@ -41,8 +41,7 @@ install-compel: $(compel-install-targets)
$(Q) $(MAKE) $(build)=compel/plugins install $(Q) $(MAKE) $(build)=compel/plugins install
.PHONY: install-compel .PHONY: install-compel
install: install-man install-lib install-criu install-compel install: install-man install-lib install-criu install-compel ;
@true
.PHONY: install .PHONY: install
uninstall: uninstall:
......
...@@ -57,8 +57,7 @@ pie: criu/pie/pie.lib.a ...@@ -57,8 +57,7 @@ pie: criu/pie/pie.lib.a
$(Q) $(MAKE) $(build)=criu/pie all $(Q) $(MAKE) $(build)=criu/pie all
.PHONY: pie .PHONY: pie
criu/pie/%: pie criu/pie/%: pie ;
@true
# #
# CRIU executable # CRIU executable
......
...@@ -29,8 +29,7 @@ install: ...@@ -29,8 +29,7 @@ install:
@cp scripts/tools.mk $(dir) @cp scripts/tools.mk $(dir)
@cp scripts/utils.mk $(dir) @cp scripts/utils.mk $(dir)
all: all: ;
@true
clean: clean:
$(call msg-clean, "nmk") $(call msg-clean, "nmk")
......
...@@ -281,8 +281,7 @@ endif ...@@ -281,8 +281,7 @@ endif
# #
# Main phony rule. # Main phony rule.
all: $(all-y) all: $(all-y) ;
@true
.PHONY: all .PHONY: all
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment