From: Bastian Dehn Date: Sun, 17 May 2026 09:46:49 +0000 (+0200) Subject: add install fragments for build X-Git-Tag: v1.0.0^2^2~11 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6a76ef5013b36d28eae1375cf969434ca29c97eb;p=simple-backup.git add install fragments for build --- diff --git a/Makefile b/Makefile index 1398e13..2936bd7 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,18 @@ PACKAGE=simple-backup PACKAGENAME=$(PACKAGE)-$(VERSION)-1-x86_64 BUILDDIR=build PREFIX=usr/local -BINDIR=$(BUILD)/$(PACKAGENAME)/$(PREFIX)/bin +BINDIR=$(BUILDDIR)/$(PACKAGENAME)/$(PREFIX)/bin -.PHONY: all clean +.PHONY: all build package clean -all: $(BUILDDIR)/DEBIAN/control +all: package + +build: $(BINDIR)/backup \ + $(BINDIR)/backupmount \ + $(BINDIR)/restore + +package: build \ + $(BUILDDIR)/DEBIAN/control clean: rm -rf build @@ -15,3 +22,15 @@ clean: $(BUILDDIR)/DEBIAN/control: mkdir --parents $(@D) cat control | sed "s/\$$VERSION/$(VERSION)/" > $(@) + +$(BINDIR)/backup: + mkdir --parents $(@D) + cp backup $(@) + +$(BINDIR)/backupmount: + mkdir --parents $(@D) + cp backupmount $(@) + +$(BINDIR)/restore: + mkdir --parents $(@D) + cp restore $(@)