diff mbox series

[1/2] rteval: Makefile: More rpm cleanups

Message ID 20231220225825.171222-1-jkacur@redhat.com
State New
Headers show
Series [1/2] rteval: Makefile: More rpm cleanups | expand

Commit Message

John Kacur Dec. 20, 2023, 10:58 p.m. UTC
Afer having removed the upstream specfile, there were still a few
references to rpms in the Makefile. These are not necessary because any
work with rpms can be done with modern rpm tools and are typically done
by distributions

Also test whether directory 'run' exists since it may have been removed
by make realclean, and create it if it does not

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 Makefile | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index ee4cca555b95..b8bed643f760 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,7 @@  load:
 	$(PYTHON) rteval-cmd --onlyload -D -L -v --workdir=./run --loaddir=$(HERE)/loadsource -f $(HERE)/rteval/rteval.conf -i $(HERE)/rteval
 
 sysreport:
+	[ -d $(HERE)/run ] || mkdir run
 	$(PYTHON) rteval-cmd -D -v --workdir=$(HERE)/run --loaddir=$(HERE)/loadsource --duration=$(D) -i $(HERE)/rteval --sysreport
 
 clean:
@@ -39,7 +40,7 @@  clean:
 
 realclean: clean
 	[ -f $(XMLRPCDIR)/Makefile ] && make -C $(XMLRPCDIR) maintainer-clean || echo -n
-	rm -rf run rpm
+	rm -rf run
 
 install: install_loads install_rteval
 
@@ -73,13 +74,6 @@  rteval-xmlrpc-$(XMLRPCVER).tar.gz :
 	make distcheck
 	cp $(XMLRPCDIR)/rteval-xmlrpc-$(XMLRPCVER).tar.gz $(HERE)/
 
-rpm_prep:
-	rm -rf rpm
-	mkdir -p rpm/{BUILD,RPMS,SRPMS,SOURCES,SPECS}
-
-rpms rpm: rpm_prep rtevalrpm loadrpm
-
-
 help:
 	@echo ""
 	@echo "rteval Makefile targets:"
@@ -88,6 +82,7 @@  help:
 	@echo "        tarfile:   create the source tarball"
 	@echo "        install:   install rteval locally"
 	@echo "        clean:     cleanup generated files"
+	@echo "        realclean: Same as clean plus directory run"
 	@echo "        sysreport: do a short testrun and generate sysreport data"
 	@echo "        tags:      generate a ctags file"
 	@echo "        cleantags: remove the ctags file"