From 52a703de55feddd355d7a81d18578538247c7b4a Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Fri, 6 Mar 2020 11:25:44 +0100 Subject: [PATCH] Makefile: remove sdist target It is not used anywhere and might be confusing to newcomers, because it only contains the (private) osbuild library, without the command line tool and runners/stages/assemblers. --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 78b27f9e..09bb0d42 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,6 @@ VERSION := $(shell python3 setup.py --version) NEXT_VERSION := $(shell expr "$(VERSION)" + 1) COMMIT=$(shell git rev-parse HEAD) -.PHONY: sdist bump-version - -sdist: - python3 setup.py sdist - find `pwd`/dist -name '*.tar.gz' -printf '%f\n' -exec mv {} . \; - # # Building packages # @@ -47,6 +41,7 @@ rpm: $(RPM_SPECFILE) $(RPM_TARBALL) # Releasing # +.PHONY: bump-version bump-version: sed -i "s|Version:\(\s*\)$(VERSION)|Version:\1$(NEXT_VERSION)|" osbuild.spec sed -i "s|Release:\(\s*\)[[:digit:]]\+|Release:\11|" osbuild.spec