flaskapp/build-deb/Makefile

21 lines
673 B
Makefile

all: man deb
man: man/flaskapp.1.md
pandoc man/flaskapp.1.md -f markdown+hard_line_breaks -s -t man -o man/flaskapp.1
cp man/flaskapp.1 flaskapp/usr/share/man/man1/
gzip -f flaskapp/usr/share/man/man1/flaskapp.1
deb: man ../requirments.txt ../run.py ../flaskapp ../LICENSE
cp -r ../flaskapp/* flaskapp/var/flaskapp/flaskapp/
cp ../run.py flaskapp/var/flaskapp/
cp ../LICENSE flaskapp/var/flaskapp/
chmod -w flaskapp/DEBIAN/*
chmod +w flaskapp/DEBIAN/control
dpkg-deb --build flaskapp
chmod -w flaskapp/DEBIAN/*
clean:
rm -f flaskapp.deb
rm -f man/flaskapp.1
rm -rf flaskapp/var
mkdir -p flaskapp/var/flaskapp/flaskapp
mkdir -p flaskapp/usr/share/man/man1/