aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-03-29 14:08:15 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-04-04 19:40:14 +0200
commitfd6959fff82a87e92d9e73cb07e210cebb675050 (patch)
treed7fd170022d99e9d6a978208ab31f169f3574ad8 /Makefile
downloadacid-fd6959fff82a87e92d9e73cb07e210cebb675050.tar.gz
acid-fd6959fff82a87e92d9e73cb07e210cebb675050.tar.xz
acid-fd6959fff82a87e92d9e73cb07e210cebb675050.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1fd3dc3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+.POSIX:
+.SUFFIXES:
+
+version = dev
+outputs = acid acid.1
+all: $(outputs)
+
+acid: acid.go
+ go build -ldflags "-X 'main.projectVersion=$(version)'" -o $@
+acid.1: acid.adoc
+ asciidoctor -b manpage -a release-version=$(version) -o $@ acid.adoc
+clean:
+ rm -f $(outputs)