2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-04 00:05:26 +00:00

test/*Makefile: add/append PHONY targets

...where they are missing.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin
2014-01-07 13:58:05 -08:00
committed by Pavel Emelyanov
parent 55c8be1c16
commit 1fa0c0c058
11 changed files with 19 additions and 4 deletions

View File

@@ -7,17 +7,21 @@ ZDTM_ARGS ?= -C
all: .FORCE
$(MAKE) zdtm
.PHONY: all
zdtm: .FORCE
$(MAKE) zdtm_ns
for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \
$(MAKE) $$t || break; \
done
.PHONY: zdtm
fault-injection: .FORCE
$(MAKE) -C fault-injection
.PHONY: fault-injection
zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP))
$(TST):
./zdtm.sh ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log || \
{ flock Makefile cat $(subst /,_,$@).log; exit 1; }
.PHONY: zdtm_ns

View File

@@ -1,4 +1,5 @@
all: job
.PHONY: all
%.o: %.c
gcc -c $< -o $@
@@ -8,3 +9,4 @@ job: job.o
clean:
rm -f *.o job
.PHONY: clean

View File

@@ -1,5 +1,6 @@
all: foo1.o foo2.o foo3.o foo4.o
echo "Done"
.PHONY: all
%.o: %.c
gcc -c $< -o $@
@@ -9,3 +10,4 @@ foo%.c: tmpl.c
clean:
rm -f *.o
.PHONY: clean

View File

@@ -1,4 +1,5 @@
all: build/test
.PHONY: all
build/test: build/test.o
gcc $^ -L ../../lib -lcriu -o $@
@@ -8,3 +9,4 @@ build/test.o: test.c
clean:
rm -rf build
.PHONY: clean

View File

@@ -1,4 +1,5 @@
all: test-c rpc_pb2.py
.PHONY: all
test-c: rpc.pb-c.o test.o
gcc $^ -o $@ -lprotobuf-c
@@ -14,3 +15,4 @@ rpc.pb-c.c: rpc.proto
clean:
rm -rf build rpc.pb-c.o test.o test-c rpc.pb-c.c rpc.pb-c.h rpc_pb2.py
.PHONY: clean

View File

@@ -1,6 +1,8 @@
OBJS=cln srv
all: $(OBJS)
.PHONY: all
clean:
rm -f $(OBJS)
.PHONY: clean

View File

@@ -1,8 +1,7 @@
SUBDIRS = lib live
default: all
.PHONY: default
PHONY: default all
%:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done

View File

@@ -1,8 +1,7 @@
SUBDIRS = streaming transition static
default: all
.PHONY: default
.PHONY: default all
%:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done

View File

@@ -178,6 +178,7 @@ DEPEND.c = $(COMPILE.c) -MM -MP
all: $(TST) criu-rtc.so
install: all
.PHONY: all install
inotify_system_nodel.c: inotify_system.c
ln -s inotify_system.c inotify_system_nodel.c

View File

@@ -32,6 +32,7 @@ DEPEND.c = $(COMPILE.c) -MM -MP
all: $(TST)
install: all
PHONY: all install
$(TST_NOFILE:%=%.pid): %.pid: %
$(<D)/$(<F) --pidfile=$@ --outfile=$<.out

View File

@@ -29,6 +29,7 @@ DEPEND.c = $(COMPILE.c) -MM -MP
all: $(TST)
install: all
PHONY: all install
$(TST_NOFILE:%=%.pid): %.pid: %
$(<D)/$(<F) --pidfile=$@ --outfile=$<.out