[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240312160009.15679-1-jkacur@redhat.com>
Date: Tue, 12 Mar 2024 12:00:09 -0400
From: John Kacur <jkacur@...hat.com>
To: Daniel Bristot de Oliveria <bristot@...nel.org>,
lkml <linux-kernel@...r.kernel.org>
Cc: linux-trace-devel@...r.kernel.org,
Steven Rostedt <rostedt@...dmis.org>,
John Kacur <jkacur@...hat.com>
Subject: [PATCH] rtla: Remove tarfile functionality
Linux distributions have been installing directly from kernel source, so
simplify the Makefile by removing the unneeded tarfile functionality.
Signed-off-by: John Kacur <jkacur@...hat.com>
---
tools/tracing/rtla/Makefile | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile
index afd18c678ff5..0bf182cda0b0 100644
--- a/tools/tracing/rtla/Makefile
+++ b/tools/tracing/rtla/Makefile
@@ -45,23 +45,13 @@ OBJ := $(SRC:.c=.o)
DIRS := src
FILES := Makefile README.txt
CEXT := bz2
-TARBALL := $(NAME)-$(VERSION).tar.$(CEXT)
-TAROPTS := -cvjf $(TARBALL)
BINDIR := /usr/bin
DATADIR := /usr/share
DOCDIR := $(DATADIR)/doc
MANDIR := $(DATADIR)/man
LICDIR := $(DATADIR)/licenses
SRCTREE := $(or $(BUILD_SRC),$(CURDIR))
-
-# If running from the tarball, man pages are stored in the Documentation
-# dir. If running from the kernel source, man pages are stored in
-# Documentation/tools/rtla/.
-ifneq ($(wildcard Documentation/.*),)
-DOCSRC = Documentation/
-else
DOCSRC = $(SRCTREE)/../../../Documentation/tools/rtla/
-endif
LIBTRACEEVENT_MIN_VERSION = 1.5
LIBTRACEFS_MIN_VERSION = 1.3
@@ -129,22 +119,12 @@ install: doc_install
@test ! -f $(DESTDIR)$(BINDIR)/timerlat || rm $(DESTDIR)$(BINDIR)/timerlat
ln -s rtla $(DESTDIR)$(BINDIR)/timerlat
-.PHONY: clean tarball
+.PHONY: clean
clean: doc_clean
@test ! -f rtla || rm rtla
@test ! -f rtla-static || rm rtla-static
@test ! -f src/rtla.o || rm src/rtla.o
- @test ! -f $(TARBALL) || rm -f $(TARBALL)
- @rm -rf *~ $(OBJ) *.tar.$(CEXT)
-
-tarball: clean
- rm -rf $(NAME)-$(VERSION) && mkdir $(NAME)-$(VERSION)
- echo $(VERSION) > $(NAME)-$(VERSION)/VERSION
- cp -r $(DIRS) $(FILES) $(NAME)-$(VERSION)
- mkdir $(NAME)-$(VERSION)/Documentation/
- cp -rp $(SRCTREE)/../../../Documentation/tools/rtla/* $(NAME)-$(VERSION)/Documentation/
- tar $(TAROPTS) --exclude='*~' $(NAME)-$(VERSION)
- rm -rf $(NAME)-$(VERSION)
+ @rm -rf *~ $(OBJ)
.PHONY: doc doc_clean doc_install
doc:
--
2.44.0
Powered by blists - more mailing lists