summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-08 13:39:11 +0200
committerDaniil Baturin <daniil@baturin.org>2015-04-08 13:39:11 +0200
commit1d0cda353fe1fbea440033db140605a88ec7dd98 (patch)
tree4ed8c051fdbdfa9b7faa2457eb302911ffb4ce97 /Makefile
parent76e598700ce4fa64eba251085af7fd85a03bfe6f (diff)
downloadhvinfo-1d0cda353fe1fbea440033db140605a88ec7dd98.tar.gz
hvinfo-1d0cda353fe1fbea440033db140605a88ec7dd98.zip
Add makefile option for build target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e8ac99b..9893b1a 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,13 @@ GNATPREP = gnatprep
INSTALL = install
+BUILD_TARGET =
+BUILD_FLAGS =
+
+ifdef BUILD_TARGET
+BUILD_FLAGS = --target=$(BUILD_TARGET)
+endif
+
all: src/config.ads hvinfo
src/config.ads: VERSION mkconfig.sh src/config.ads.in
@@ -37,7 +44,7 @@ src/config.ads: VERSION mkconfig.sh src/config.ads.in
.PHONY: hvinfo
hvinfo:
mkdir -p $(BUILD_DIR)
- $(GPRBUILD) -Phvinfo
+ $(GPRBUILD) -Phvinfo $(BUILD_FLAGS)
clean:
if test -d $(BUILD_DIR); then \