summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2015-04-14 15:55:03 -0600
committerkballou <kballou@devnulllabs.io>2015-04-17 15:19:50 -0600
commitc49d15d5340d7c19121a64ee17f31f7bf30ca502 (patch)
tree74999a8bc6ce849413dd6f0d8768299e64a50409 /Makefile
downloadgohadoopxml-c49d15d5340d7c19121a64ee17f31f7bf30ca502.tar.gz
gohadoopxml-c49d15d5340d7c19121a64ee17f31f7bf30ca502.tar.xz
gohadoopxml: hadoop configuraiton extractor
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e296636
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+VERSION=0
+MAJOR=0
+MINOR=1
+BUILD=`git rev-parse --short HEAD`
+LDFLAGS="-X gohadoopxml.Version ${VERSION}.${MAJOR}.${MINOR}-${BUILD}"
+all: build
+
+build:
+ @mkdir -p _build
+ @go build -ldflags ${LDFLAGS} -o _build/gohadoopxml
+
+install:
+ @go install -ldflags ${LDFLAGS}
+
+clean:
+ @/bin/rm -rf _build/
+ @/bin/rm -rf _dist/