]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add install fragments for build
authorBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 09:46:49 +0000 (11:46 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 09:46:49 +0000 (11:46 +0200)
Makefile

index 1398e13ccef7f16f66fb0d127c8a04ef5323cd10..2936bd7172d11d5b4a5b81bb6536449fa9b7c2c0 100644 (file)
--- 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 $(@)