From 4beb3278264b8ae7452e5894c65f2d915e254aa9 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 17 May 2026 21:01:47 +0200 Subject: [PATCH] add example config in share folder --- Makefile | 9 ++++++++- src/config-example.yaml | 0 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/config-example.yaml diff --git a/Makefile b/Makefile index 82d0126..d11028b 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SRCDIR=src BUILDDIR=build PREFIX=usr/local BINDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/bin +SHAREDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/share/$(PACKAGE) .PHONY: all build package clean @@ -12,7 +13,8 @@ all: package build: $(BINDIR)/backup \ $(BINDIR)/backupmount \ - $(BINDIR)/restore + $(BINDIR)/restore \ + $(SHAREDIR)/config-example.yaml package: $(BUILDDIR)/$(PACKAGENAME).deb @@ -35,10 +37,15 @@ $(BINDIR)/restore: mkdir --parents $(@D) cp $(SRCDIR)/restore $(@) +$(SHAREDIR)/config-example.yaml: + mkdir --parents $(@D) + cp $(SRCDIR)/config-example.yaml $(@) + $(BUILDDIR)/$(PACKAGENAME).deb: \ $(BINDIR)/backup \ $(BINDIR)/backupmount \ $(BINDIR)/restore \ + $(SHAREDIR)/config-example.yaml \ $(BUILDDIR)/$(PACKAGENAME)/DEBIAN/control mkdir --parents $(@D) diff --git a/src/config-example.yaml b/src/config-example.yaml new file mode 100644 index 0000000..e69de29 -- 2.47.3