Remove redundant rules by using wildcards.
Signed-off-by: Ralf Ramsauer <[email protected]>
---
tools/Makefile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/tools/Makefile b/tools/Makefile
index d336369d..e6945cd6 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -106,10 +106,7 @@ endef
targets += jailhouse.o ivshmem-demo.o
-$(obj)/jailhouse: $(obj)/jailhouse.o
- $(call if_changed,ld)
-
-$(obj)/ivshmem-demo: $(obj)/ivshmem-demo.o
+$(obj)/%: $(obj)/%.o
$(call if_changed,ld)
CFLAGS_jailhouse-gcov-extract.o := -I$(src)/../hypervisor/include \
@@ -120,9 +117,6 @@ LDFLAGS_jailhouse-gcov-extract := -lgcov -fprofile-arcs
targets += jailhouse-gcov-extract.o
always-y += jailhouse-gcov-extract
-$(obj)/jailhouse-gcov-extract: $(obj)/jailhouse-gcov-extract.o
- $(call if_changed,ld)
-
$(obj)/jailhouse-config-collect: $(src)/jailhouse-config-create
$(src)/jailhouse-config-collect.tmpl
$(call if_changed,gen_collect)
--
2.29.1
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201027214021.407707-1-ralf.ramsauer%40oth-regensburg.de.