From 8d2fefec8fea73c680a5c7eb43bf73c0c33e9df0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 22 Aug 2014 18:35:28 +0200 Subject: Add Dockerfile & Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..14fd61ae30c3 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +VERSION=$(shell bash -c "grep -P -o -e '\d\.\d$$' TazBlog.cabal | head -n1") +ARCH_PKG=arch/tazblog-$(VERSION)-1-x86_64.pkg.tar.xz +export ARCH_PKG + +all: archpkg docker + +archpkg: $(ARCH_PKG) + +$(ARCH_PKG): + cd arch && makepkg + +docker: archpkg + cat Dockerfile.raw | envsubst > Dockerfile; \ + docker build -t tazjin/tazblog . -- cgit 1.4.1