aboutsummaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-12-04 15:14:53 -0500
committerPaul Selkirk <paul@psgd.org>2018-12-04 15:14:53 -0500
commitc79beb5f67cfc9225c16b93f5edb8c59fdd0d087 (patch)
tree1ebd6b14ae5fc40f34fcefa8b7e8ca2902edffb0 /build/Makefile
parenta4e91b6221f75045dd1d97362e9d12c590ebc15a (diff)
Collapse build targets into one rule, because that's exactly what $@ is designed for.
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile30
1 files changed, 3 insertions, 27 deletions
diff --git a/build/Makefile b/build/Makefile
index 4e3a9bb..bb3f0ce 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -32,33 +32,9 @@ core_selector.v core_vfiles.mk:
# Build some different configurations
-bare:
- $(CONFIG_GEN) -p bare
- $(MAKE) project=$(project)_bare ucf=$(ucf)
-
-trng:
- $(CONFIG_GEN) -p trng
- $(MAKE) project=$(project)_trng ucf=$(ucf)
-
-hash:
- $(CONFIG_GEN) -p hash
- $(MAKE) project=$(project)_hash ucf=$(ucf)
-
-rsa:
- $(CONFIG_GEN) -p rsa
- $(MAKE) project=$(project)_rsa ucf=$(ucf)
-
-mkmif:
- $(CONFIG_GEN) -p mkmif
- $(MAKE) project=$(project)_mkmif ucf=$(ucf)
-
-hsm:
- $(CONFIG_GEN) -p hsm
- $(MAKE) project=$(project)_hsm ucf=$(ucf)
-
-hsm-super:
- $(CONFIG_GEN) -p hsm-super
- $(MAKE) project=$(project)_hsm-super ucf=$(ucf)
+bare trng hash mkmif rsa hsm hsm-super:
+ $(CONFIG_GEN) -p $@
+ $(MAKE) project=$(project)_$@ ucf=$(ucf)
# Verilog files that always go with builds on this platform.