From 6f0600a2cf6216a757018566eb66147a8644bd57 Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Jun 09 2021 09:53:51 +0000 Subject: Add patch command to Makefile This change just adds the patch command on the cephadm Makefile: this is useful to save (in the SOURCES dir) the .patch file that keeps track of the changes between the latest pushed version and the current one. --- diff --git a/Makefile b/Makefile index 05fa4db..eaeb386 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ echo: pre ## Print the passed (or computed) parameters @echo LOCAL HASH $(LOCALHASH) @echo RELEASE $(RELEASE) +patch: pre ## Build the latest patch + git diff $(PWD)/SOURCES/cephadm > $(PWD)/SOURCES/cephadm-$(VERSION)-$(RELEASE).patch + spec: pre ## Patch and build the cephadm spec file sed SPECS/cephadm.spec.in \ -e "s/$(LOCALHASH)/$(REMOTEHASH)/" \