forked from fram3d/donationcalc
18 lines
679 B
Makefile
18 lines
679 B
Makefile
|
all: man deb
|
||
|
|
||
|
man: man/donationcalc.1.md
|
||
|
pandoc man/donationcalc.1.md -f markdown+hard_line_breaks -s -t man -o man/donationcalc.1
|
||
|
cp man/donationcalc.1 donationcalc/usr/share/man/man1/
|
||
|
gzip -f donationcalc/usr/share/man/man1/donationcalc.1
|
||
|
deb: man ../requirments.txt ../run.py ../donationcalc ../LICENSE
|
||
|
cp -r ../donationcalc/* donationcalc/var/donationcalc/donationcalc/
|
||
|
cp ../run.py donationcalc/var/donationcalc/
|
||
|
cp ../LICENSE donationcalc/var/donationcalc/
|
||
|
dpkg-deb --build donationcalc
|
||
|
clean:
|
||
|
rm -f donationcalc.deb
|
||
|
rm -f man/donationcalc.1
|
||
|
rm -rf donationcalc/var
|
||
|
mkdir -p donationcalc/var/donationcalc/donationcalc
|
||
|
mkdir -p donationcalc/usr/share/man/man1/
|