flaskapp/build-deb/Makefile

22 lines
714 B
Makefile
Raw Permalink Normal View History

2023-10-20 13:20:56 +00:00
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 ../init_db.py flaskapp/var/flaskapp/
2023-10-20 13:20:56 +00:00
cp ../LICENSE flaskapp/var/flaskapp/
2024-01-17 14:15:05 +00:00
chmod -w flaskapp/DEBIAN/*
chmod +w flaskapp/DEBIAN/control
2023-10-20 13:20:56 +00:00
dpkg-deb --build flaskapp
chmod +w flaskapp/DEBIAN/*
2023-10-20 13:20:56 +00:00
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/