From: Bastian Dehn Date: Sun, 17 May 2026 09:41:42 +0000 (+0200) Subject: add control make X-Git-Tag: v1.0.0^2^2~12 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=0f9fb1194e9ffae51c05d6fc39749e7347c444fb;p=simple-backup.git add control make --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1398e13 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +VERSION=1.0.0 +PACKAGE=simple-backup +PACKAGENAME=$(PACKAGE)-$(VERSION)-1-x86_64 +BUILDDIR=build +PREFIX=usr/local +BINDIR=$(BUILD)/$(PACKAGENAME)/$(PREFIX)/bin + +.PHONY: all clean + +all: $(BUILDDIR)/DEBIAN/control + +clean: + rm -rf build + +$(BUILDDIR)/DEBIAN/control: + mkdir --parents $(@D) + cat control | sed "s/\$$VERSION/$(VERSION)/" > $(@) diff --git a/control b/control index fadf8f9..e0a7e28 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: simple-backup -Version: 1.0.0 +Version: $VERSION Section: admin Priority: optional Architecture: x86_64