2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

Makefiles: don't use the FORCE, Luke!

With GNU make, using .PHONY leads to the same result as using
the "FORCE" hack, but unlike FORCE is not a hack. Since we do not
plan to use any other make than GNU make, let's just mark phony
targets as such.

For more details about why PHONY is better than FORCE, see
http://www.gnu.org/software/make/manual/make.html#index-FORCE

[v2: rebased and splitted]

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Kir Kolyshkin
2016-02-24 12:29:57 -08:00
committed by Pavel Emelyanov
parent 885370f1be
commit 2edc082e07
2 changed files with 14 additions and 14 deletions

View File

@@ -1,16 +1,15 @@
ARCHES ?= armv7hf aarch64 ppc64le # x86_64
all: $(ARCHES)
.FORCE:
Dockerfile.%: Dockerfile.%.hdr Dockerfile.tmpl
cat $^ > $@
qemu-user-static:
./extract-deb-pkg qemu-user-static
binfmt_misc: .FORCE
binfmt_misc:
./binfmt_misc
.PHONY: binfmt_misc
%: Dockerfile.% qemu-user-static binfmt_misc
docker build -t criu-$@ -f $< ../..