diff options
author | Vincent Ambo <tazjin@google.com> | 2019-06-28T21·55+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-06-28T21·55+0100 |
commit | 2373c925e18963c6f2698ba4c45d74196f3aaaf3 (patch) | |
tree | 38a0c804881c71b24391129d9ca4092de1a7b583 /services/tazblog/Makefile | |
parent | aeeb11f1b76729115c4db98f419cbcda1a0f7660 (diff) |
refactor: Move tazblog into monorepo structure
It's happening!
Diffstat (limited to 'services/tazblog/Makefile')
-rw-r--r-- | services/tazblog/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/services/tazblog/Makefile b/services/tazblog/Makefile new file mode 100644 index 000000000000..00d77dd36cfd --- /dev/null +++ b/services/tazblog/Makefile @@ -0,0 +1,17 @@ +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 . + +clean: + rm -rf dist arch/*.pkg.tar.xz arch/pkg arch/src arch/*. Dockerfile |