summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEC2 Default User <eisin@users.noreply.github.com>2018-07-01 11:09:49 +0200
committerEC2 Default User <eisin@users.noreply.github.com>2018-07-01 11:09:49 +0200
commite9e73dea57eb126e1081f269071402381129545a (patch)
tree18c45a41e7b33aeef6051c955b4bc7f2de4ad237 /Makefile
parentconfiguration example added (diff)
downloadpamldapd-e9e73dea57eb126e1081f269071402381129545a.tar
pamldapd-e9e73dea57eb126e1081f269071402381129545a.tar.gz
pamldapd-e9e73dea57eb126e1081f269071402381129545a.tar.bz2
pamldapd-e9e73dea57eb126e1081f269071402381129545a.tar.lz
pamldapd-e9e73dea57eb126e1081f269071402381129545a.tar.xz
pamldapd-e9e73dea57eb126e1081f269071402381129545a.tar.zst
pamldapd-e9e73dea57eb126e1081f269071402381129545a.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cd9c983
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+.DEFAULT_GOAL := default
+
+all: x86-64 i386
+default: x86-64
+x86-64: x86-64.build
+i386: i386.build
+%.build: src/pamldapd.go
+ @echo BUILD ARCH $(shell basename $@ .build)
+ docker build -t pamldapd-build-$(shell basename $@ .build)-tmp -f Dockerfile_$(shell basename $@ .build) .
+ docker run --name pamldapd-build-$(shell basename $@ .build)-tmp pamldapd-build-$(shell basename $@ .build)-tmp
+ docker wait pamldapd-build-$(shell basename $@ .build)-tmp
+ docker cp pamldapd-build-$(shell basename $@ .build)-tmp:/root/go/src/pamldapd pamldapd-$(shell basename $@ .build)
+ docker rm pamldapd-build-$(shell basename $@ .build)-tmp
+
+clean: x86-64.clean i386.clean
+%.clean:
+ @echo CLEAN ARCH $(shell basename $@ .build)
+ docker rmi pamldapd-build-$(shell basename $@ .build)-tmp || true