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>
This commit is contained in:
parent
25f515831c
commit
ae92e77d5e
1 changed files with 2 additions and 8 deletions
10
Makefile
10
Makefile
|
@ -107,14 +107,8 @@ passt.avx2: $(PASST_SRCS) $(PASST_HEADERS) seccomp.h
|
||||||
|
|
||||||
passt.avx2: passt
|
passt.avx2: passt
|
||||||
|
|
||||||
pasta.avx2: passt.avx2
|
pasta.avx2 pasta.1 pasta: pasta%: passt%
|
||||||
ln -s passt.avx2 pasta.avx2
|
ln -s $< $@
|
||||||
|
|
||||||
pasta: passt
|
|
||||||
ln -s passt pasta
|
|
||||||
|
|
||||||
pasta.1: passt.1
|
|
||||||
ln -s passt.1 pasta.1
|
|
||||||
|
|
||||||
qrap: $(QRAP_SRCS) passt.h
|
qrap: $(QRAP_SRCS) passt.h
|
||||||
$(CC) $(CFLAGS) $(QRAP_SRCS) -o qrap
|
$(CC) $(CFLAGS) $(QRAP_SRCS) -o qrap
|
||||||
|
|
Loading…
Reference in a new issue