aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-14 15:12:23 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-18 09:06:00 +0200
commitae92e77d5eb88faed627e38b342a041985c128d5 (patch)
tree1fac9ddfa55fc22fd2735c29474e64cdd515f240 /Makefile
parent25f515831cef1faf6f2e73c8a6b58a0db803786f (diff)
downloadpasst-ae92e77d5eb88faed627e38b342a041985c128d5.tar
passt-ae92e77d5eb88faed627e38b342a041985c128d5.tar.gz
passt-ae92e77d5eb88faed627e38b342a041985c128d5.tar.bz2
passt-ae92e77d5eb88faed627e38b342a041985c128d5.tar.lz
passt-ae92e77d5eb88faed627e38b342a041985c128d5.tar.xz
passt-ae92e77d5eb88faed627e38b342a041985c128d5.tar.zst
passt-ae92e77d5eb88faed627e38b342a041985c128d5.zip
Makefile: Simplify pasta* targets with a pattern rule
pasta, pasta.avx2 and pasta.1 are all generated as a link to the corresponding passt file. We can consolidate the 3 rules for these targets into a single pattern rule. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index dad6b53..682aa3c 100644
--- a/Makefile
+++ b/Makefile
@@ -107,14 +107,8 @@ passt.avx2: $(PASST_SRCS) $(PASST_HEADERS) seccomp.h
passt.avx2: passt
-pasta.avx2: passt.avx2
- ln -s passt.avx2 pasta.avx2
-
-pasta: passt
- ln -s passt pasta
-
-pasta.1: passt.1
- ln -s passt.1 pasta.1
+pasta.avx2 pasta.1 pasta: pasta%: passt%
+ ln -s $< $@
qrap: $(QRAP_SRCS) passt.h
$(CC) $(CFLAGS) $(QRAP_SRCS) -o qrap