From 0f9fb1194e9ffae51c05d6fc39749e7347c444fb Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 17 May 2026 11:41:42 +0200 Subject: [PATCH] add control make --- Makefile | 17 +++++++++++++++++ control | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Makefile 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 -- 2.47.3