From b7f7be1aa0530a5a2f95523c6e8b40c1a3e535d8 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 13 Aug 2022 10:09:32 +0000 Subject: [PATCH] Ajout d'un Makefile permettant de construire des paquets deb --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a37164 --- /dev/null +++ b/Makefile @@ -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