18 lines
583 B
Makefile
18 lines
583 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/
|
|
dpkg-deb --build flaskapp
|
|
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/
|