Ajout d'un Makefile permettant de construire des paquets deb

This commit is contained in:
Adrien Bourmault 2022-08-13 10:09:32 +00:00
parent f3d07fe011
commit b7f7be1aa0
1 changed files with 28 additions and 0 deletions

28
Makefile Normal file
View File

@ -0,0 +1,28 @@
#!/bin/bash
# file: Makefile
# By neox
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
default: estl.deb
### MAKE DEB
.INTERMEDIATE: debian-binary control.tar.gz data.tar.gz
.PHONY: clean
estl.deb: debian-binary control.tar.gz data.tar.gz
ar -r estl.deb debian-binary control.tar.gz data.tar.gz
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