From cc5ca506795c0eb6d61be7acd9b4cb86928b8f74 Mon Sep 17 00:00:00 2001 From: Stanislav Uschakow Date: Thu, 29 Feb 2024 14:31:40 +0100 Subject: [PATCH] Minor changes to Makefile so the build system can actually build RPMs --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 26fb666..0f92670 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ MAJOR=0 MINOR=1 RELEASE=1 -VERSION=$(MAJOR).$(MINOR)-$(RELEASE)$(DIST) +VERSION=$(MAJOR).$(MINOR)-$(RELEASE) $(info Building version $(VERSION)) @@ -36,8 +36,10 @@ MAN_FILE_LOCATION=/usr/share/man/man1 all: $(error There is nothing to build here yet. Please use "make install" to install the config files) +srpm: sources + sources: - tar czf ./smart-restart-$(VERSION).tar.gz --transform 's,^,smart-restart-$(VERSION)/,' bin conf Makefile smart-restart.spec doc/smart-restart.man1 + tar czf ./smart-restart-v$(VERSION).tar.gz --transform 's,^,smart-restart-v$(VERSION)/,' bin conf Makefile smart-restart.spec doc/smart-restart.man1 install: $(info Dest: $(DEST_DIR))