On Mon, 6 Apr 2020, Scott Wood wrote: > setup.py installs into /usr/local by default, but the makefile > is still creating directories in /usr that it doesn't install > anything into. Worse, the uninstall target removes things > from /usr rather than what was installed by "make install". > > Signed-off-by: Scott Wood <swood@xxxxxxxxxx> > --- > Makefile | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/Makefile b/Makefile > index f784ba778bc3..f91e6e06a9a4 100644 > --- a/Makefile > +++ b/Makefile > @@ -15,9 +15,6 @@ XMLRPCDIR := server > DESTDIR := > PREFIX := /usr > DATADIR := $(DESTDIR)/$(PREFIX)/share > -CONFDIR := $(DESTDIR)/etc > -MANDIR := $(DESTDIR)/$(PREFIX)/share/man > -PYLIB := $(DESTDIR)$(shell $(PYTHON) -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') > LOADDIR := loadsource > > KLOAD := $(LOADDIR)/linux-5.1.tar.xz > @@ -60,17 +57,6 @@ install_loads: $(LOADS) > > installdirs: > [ -d $(DATADIR)/rteval ] || mkdir -p $(DATADIR)/rteval > - [ -d $(CONFDIR) ] || mkdir -p $(CONFDIR) > - [ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8 > - [ -d $(PYLIB) ] || mkdir -p $(PYLIB) > - [ -d $(DESTDIR)/usr/bin ] || mkdir -p $(DESTDIR)/usr/bin > - > -uninstall: > - rm -f /usr/bin/rteval > - rm -f $(CONFDIR)/rteval.conf > - rm -f $(MANDIR)/man8/rteval.8.gz > - rm -rf $(PYLIB)/rteval > - rm -rf $(DATADIR)/rteval > > tarfile: rteval-$(VERSION).tar.bz2 > > -- > 2.18.2 > > As you've probably guessed, the distribution spec file doesn't use the Makefile at all when installing, just setup.py This is left over from when Clark and David were first writing this. The default target in the Makefile is runit Which is a great way to do sanity check after creating patches, so I would like that to work - which your next patch does do. This stuff should be cleaned-up though, so Signed-off-by: John Kacur <jkacur@xxxxxxxxxx> For people who are reading this and don't know what rteval is, it's a program that runs cyclictest as a measurement thread on various cpus while running various programs a loads at the same time. Mostly it works quite well, but in some spots the code is pretty rough. Not all of the upstream code is packaged for distributing, so if you see code that doesn't work in python3, that's probably why, it's not currently shipped. This is all open source, so anyone is welcome to look at it and send us patches. It's available at git://git.kernel.org/pub/scm/utils/rteval/rteval