summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2016-04-01 17:55:35 +0600
committerDaniil Baturin <daniil@baturin.org>2016-04-01 17:55:35 +0600
commitad7cbcd195198e78c2a6e67d5be3db6ffeb2a479 (patch)
tree8715a33ca2110c62ddd8689956a4cc9d386e748d /Makefile
parent85bdc136388b07d039610df97362f07fe6529e2c (diff)
downloadhvinfo-ad7cbcd195198e78c2a6e67d5be3db6ffeb2a479.tar.gz
hvinfo-ad7cbcd195198e78c2a6e67d5be3db6ffeb2a479.zip
Fix conditional build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 783d4f3..413332d 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,10 @@ ifdef BUILD_TARGET
BUILD_FLAGS = --target=$(BUILD_TARGET)
endif
-all: src/config.ads hvinfo
+all: config.def src/config.ads hvinfo
+
+config.def:
+ ./mkdefs.sh
src/config.ads: VERSION mkconfig.sh src/config.ads.in
GNATPREP=$(GNATPREP) ./mkconfig.sh
@@ -54,6 +57,7 @@ clean:
rm -rf $(BUILD_DIR);\
fi
rm -f $(CONFIG)
+ rm -f src/config.ads
install:
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/$(BINDIR)