tools/vchan: Collect targets in TARGETS

And use the new TARGETS to clean them. Now "clean" will remove
"vchan-socket-proxy".

$(RM) already have the "-f" flags, so remove the second one.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Anthony PERARD authored and Andrew Cooper committed 2021-12-16 20:27:13 +00:00
1 parent 41da0c21ee
commit e10ef07578
1 file changed
+4 -2
+4 -2
View File
@@ -11,8 +11,10 @@ NODE2_OBJS = node-select.o
$(NODE_OBJS) $(NODE2_OBJS): CFLAGS += $(CFLAGS_libxenvchan) $(CFLAGS_libxengnttab) $(CFLAGS_libxenevtchn)
vchan-socket-proxy.o: CFLAGS += $(CFLAGS_libxenvchan) $(CFLAGS_libxenstore) $(CFLAGS_libxenctrl) $(CFLAGS_libxengnttab) $(CFLAGS_libxenevtchn)
TARGETS := vchan-node1 vchan-node2 vchan-socket-proxy
.PHONY: all
all: vchan-node1 vchan-node2 vchan-socket-proxy
all: $(TARGETS)
vchan-node1: $(NODE_OBJS)
$(CC) $(LDFLAGS) -o $@ $(NODE_OBJS) $(LDLIBS_libxenvchan) $(APPEND_LDFLAGS)
@@ -30,7 +32,7 @@ install: all
.PHONY: clean
clean:
$(RM) -f *.o vchan-node1 vchan-node2 $(DEPS_RM)
$(RM) *.o $(TARGETS) $(DEPS_RM)
distclean: clean
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.