2022-03-07 17:10:39 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# file: Makefile
|
|
|
|
# Folder: /var/lib/gsl/scripts
|
|
|
|
# By neox
|
|
|
|
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
|
|
|
|
|
2022-03-07 23:57:26 +01:00
|
|
|
default: egsl.deb
|
2022-03-07 17:10:39 +01:00
|
|
|
|
|
|
|
### MAKE DEB
|
|
|
|
|
|
|
|
.INTERMEDIATE: debian-binary control.tar.gz data.tar.gz
|
|
|
|
.PHONY: clean
|
|
|
|
|
2022-03-07 23:57:26 +01:00
|
|
|
egsl.deb: debian-binary control.tar.gz data.tar.gz
|
|
|
|
ar -r egsl.deb debian-binary control.tar.gz data.tar.gz
|
2022-03-07 17:10:39 +01:00
|
|
|
|
|
|
|
data.tar.gz:
|
|
|
|
tar czvf data.tar.gz etc usr var
|
|
|
|
|
|
|
|
control.tar.gz:
|
|
|
|
tar czvf control.tar.gz control #preinst postinst prerm postrm
|
|
|
|
|
|
|
|
debian-binary:
|
|
|
|
echo 2.0 > debian-binary
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.tar.gz
|
|
|
|
-rm debian-binary
|
|
|
|
-rm *.deb
|