summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3b95b69f9414b94c500723b696332675e662ca86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
VERSION := $(shell grep '^version:' pancake.cabal | cut -d ' '  -f14- -)
NAME ?= "pancake-${VERSION}"

deb:
	cabal configure --prefix=/usr
	cabal build
	cabal copy --destdir=deb
	dpkg-deb --build deb/ ${NAME}.deb

bin:
	cabal configure --prefix=/usr/local
	cabal build
	cabal copy --destdir=${NAME}-bin
	tar -cJ -f ${NAME}-bin.tar.xz -P ${NAME}-bin

clean:
	rm -rf ${NAME}.deb ${NAME}-bin.tar.xz ${NAME}-bin/ deb/usr/ dist/

.PHONY: deb bin clean