2023-04-10 19:45:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# file: Makefile
|
|
|
|
|
|
|
|
# By neox
|
|
|
|
|
|
|
|
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
|
|
|
|
|
|
|
|
default: debian/tyto.deb
|
|
|
|
|
|
|
|
### MAKE DEB
|
|
|
|
|
2024-02-28 10:27:03 +01:00
|
|
|
.INTERMEDIATE: debian/control debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
2023-04-10 19:45:54 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
debian/tyto.deb: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
|
|
|
ar -r debian/tyto.deb debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
|
|
|
|
|
|
|
debian/data.tar.gz:
|
|
|
|
cd src && tar czvf ../debian/data.tar.gz usr var
|
|
|
|
|
2024-02-28 10:27:03 +01:00
|
|
|
debian/control: debian/control_template
|
|
|
|
cat $< | sed "s/VERSION/`git describe --tags`/g" > $@
|
|
|
|
|
|
|
|
debian/control.tar.gz: debian/control
|
2023-04-10 19:45:54 +02:00
|
|
|
tar czvf debian/control.tar.gz debian/control #preinst postinst prerm postrm
|
|
|
|
|
|
|
|
debian/debian-binary:
|
|
|
|
echo 2.0 > debian/debian-binary
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm debian/*.tar.gz
|
|
|
|
-rm debian/debian-binary
|
|
|
|
-rm debian/*.deb
|