about summary refs log blame commit diff
path: root/Makefile
blob: 14fd61ae30c3e5c89e9708ab9b4034e731d45814 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 .