]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add example config in share folder
authorBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 19:01:47 +0000 (21:01 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 19:01:47 +0000 (21:01 +0200)
Makefile
src/config-example.yaml [new file with mode: 0644]

index 82d01265b5b50d87b561116d0757ca1c53c3aa00..d11028b64e2e6fc8e0922e51531ce62e2f294543 100644 (file)
--- 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 (file)
index 0000000..e69de29