aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile106
-rw-r--r--docs/Makefile310
-rw-r--r--po/Makefile60
-rw-r--r--sos/Makefile19
-rw-r--r--sos/collector/Makefile20
-rw-r--r--sos/collector/clusters/Makefile20
-rw-r--r--sos/policies/Makefile20
-rw-r--r--sos/report/Makefile20
-rw-r--r--sos/report/plugins/Makefile20
9 files changed, 0 insertions, 595 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 266947a8..00000000
--- a/Makefile
+++ /dev/null
@@ -1,106 +0,0 @@
-#
-# Makefile for sos system support tools
-#
-
-NAME = sos
-VERSION := $(shell echo `awk '/^Version:/ {print $$2}' sos.spec`)
-MAJOR := $(shell echo $(VERSION) | cut -f 1 -d '.')
-MINOR := $(shell echo $(VERSION) | cut -f 2 -d '.')
-RELEASE := $(shell echo `awk '/^Release:/ {gsub(/\%.*/,""); print $2}' sos.spec`)
-REPO = https://github.com/sosreport/sos
-
-SUBDIRS = po sos sos/policies sos/report sos/report/plugins sos/collector sos/collector/clusters docs
-PYFILES = $(wildcard *.py)
-# OS X via brew
-# MSGCAT = /usr/local/Cellar/gettext/0.18.1.1/bin/msgcat
-MSGCAT = msgcat
-
-DIST_BUILD_DIR = dist-build
-RPM_DEFINES = --define "_topdir %(pwd)/$(DIST_BUILD_DIR)" \
- --define "_builddir %{_topdir}" \
- --define "_rpmdir %{_topdir}" \
- --define "_srcrpmdir %{_topdir}" \
- --define "_specdir %{_topdir}" \
- --define "_sourcedir %{_topdir}"
-RPM = rpmbuild
-RPM_WITH_DIRS = $(RPM) $(RPM_DEFINES)
-ARCHIVE_DIR = $(DIST_BUILD_DIR)/$(NAME)-$(VERSION)
-DEB_ARCHIVE_DIR = $(DIST_BUILD_DIR)/$(NAME)report-$(VERSION)
-
-SRC_BUILD = $(DIST_BUILD_DIR)/sdist
-PO_DIR = $(SRC_BUILD)/sos/po
-
-.PHONY: docs
-docs:
- make -C docs html man
-
-.PHONY: build
-build:
- for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done
-
-.PHONY: install
-install:
- mkdir -p $(DESTDIR)/usr/sbin
- mkdir -p $(DESTDIR)/usr/share/man/man1
- mkdir -p $(DESTDIR)/usr/share/man/man5
- mkdir -p $(DESTDIR)/usr/share/$(NAME)/extras
- @gzip -c man/en/sos.1 > sos.1.gz
- @gzip -c man/en/sos-report.1 > sos-report.1.gz
- @gzip -c man/en/sos-collect.1 > sos-collect.1.gz
- @gzip -c man/en/sos.conf.5 > sos.conf.5.gz
- @rm -f sosreport.1.gz sos-collector.1.gz
- @ln -s sos-report.1.gz sosreport.1.gz
- @ln -s sos-collect.1.gz sos-collector.1.gz
- mkdir -p $(DESTDIR)/etc
- install -m755 bin/sosreport $(DESTDIR)/usr/sbin/sosreport
- install -m755 bin/sos $(DESTDIR)/usr/sbin/sos
- install -m644 sos.1.gz $(DESTDIR)/usr/share/man/man1/.
- install -m644 sos-report.1.gz $(DESTDIR)/usr/share/man/man1/.
- install -m644 sosreport.1.gz $(DESTDIR)/usr/share/man/man1/.
- install -m644 sos-collect.1.gz $(DESTDIR)/usr/share/man/man1/.
- install -m644 sos-collector.1.gz $(DESTDIR)/usr/share/man/man1/.
- install -m644 sos.conf.5.gz $(DESTDIR)/usr/share/man/man5/.
- install -m644 AUTHORS README.md $(DESTDIR)/usr/share/$(NAME)/.
- install -m644 $(NAME).conf $(DESTDIR)/etc/$(NAME).conf
- for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
-
-$(NAME)-$(VERSION).tar.gz: clean
- @mkdir -p $(ARCHIVE_DIR)
- @tar -cv bin sos docs man po sos.conf AUTHORS LICENSE README.md sos.spec Makefile | tar -x -C $(ARCHIVE_DIR)
- @tar Ccvzf $(DIST_BUILD_DIR) $(DIST_BUILD_DIR)/$(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION) --exclude-vcs
-
-$(NAME)report_$(VERSION).orig.tar.gz: clean
- @mkdir -p $(DEB_ARCHIVE_DIR)
- @tar --exclude-vcs \
- --exclude=.travis.yml \
- --exclude=debian \
- --exclude=$(DIST_BUILD_DIR) -cv . | tar -x -C $(DEB_ARCHIVE_DIR)
- @tar Ccvzf $(DIST_BUILD_DIR) $(DIST_BUILD_DIR)/$(NAME)report_$(VERSION).orig.tar.gz $(NAME)report-$(VERSION)
- @mv $(DIST_BUILD_DIR)/$(NAME)report_$(VERSION).orig.tar.gz .
- @rm -Rf $(DIST_BUILD_DIR)
-
-clean:
- @rm -fv *~ .*~ changenew ChangeLog.old $(NAME)-$(VERSION).tar.gz sos.1.gz sos-report.1.gz sos-collect.1.gz sos.conf.5.gz
- @rm -rf rpm-build
- @for i in `find . -iname *.pyc`; do \
- rm -f $$i; \
- done; \
- for d in $(SUBDIRS); do make -C $$d clean ; done
-
-srpm: clean $(NAME)-$(VERSION).tar.gz
- $(RPM_WITH_DIRS) -ts $(DIST_BUILD_DIR)/$(NAME)-$(VERSION).tar.gz
-
-rpm: clean $(NAME)-$(VERSION).tar.gz
- $(RPM_WITH_DIRS) -tb $(DIST_BUILD_DIR)/$(NAME)-$(VERSION).tar.gz
-
-po: clean
- mkdir -p $(PO_DIR)
- for po in `ls po/*.po`; do \
- $(MSGCAT) -p -o $(PO_DIR)/sos_$$(basename $$po | awk -F. '{print $$1}').properties $$po; \
- done; \
-
- cp $(PO_DIR)/sos_en.properties $(PO_DIR)/sos_en_US.properties
- cp $(PO_DIR)/sos_en.properties $(PO_DIR)/sos.properties
-
-test:
- nosetests -v --with-cover --cover-package=sos --cover-html
diff --git a/docs/Makefile b/docs/Makefile
deleted file mode 100644
index 1270045d..00000000
--- a/docs/Makefile
+++ /dev/null
@@ -1,310 +0,0 @@
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-PAPER =
-BUILDDIR = _build
-DOCDESTDIR = ${DESTDIR}/usr/share/doc/sos
-
-# User-friendly check for sphinx-build
-ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
-$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://www.sphinx-doc.org/)
-endif
-
-# Internal variables.
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-# the i18n builder cannot share the environment and doctrees with the others
-I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext install-dir install-html install-dirhtml install-singlehtml install-pickle install-json install-htmlhelp install-qthelp install-epub install-latex install-text install-man install-texinfo install-info install-gettext install-changes install-linkcheck install-doctest install-xml install-pseudoxml install
-
-help:
- @echo "Please use \`make <target>' where <target> is one of"
- @echo " html to make standalone HTML files"
- @echo " dirhtml to make HTML files named index.html in directories"
- @echo " singlehtml to make a single large HTML file"
- @echo " pickle to make pickle files"
- @echo " json to make JSON files"
- @echo " htmlhelp to make HTML files and a HTML help project"
- @echo " qthelp to make HTML files and a qthelp project"
- @echo " devhelp to make HTML files and a Devhelp project"
- @echo " epub to make an epub"
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
- @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
- @echo " text to make text files"
- @echo " man to make manual pages"
- @echo " texinfo to make Texinfo files"
- @echo " info to make Texinfo files and run them through makeinfo"
- @echo " gettext to make PO message catalogs"
- @echo " changes to make an overview of all changed/added/deprecated items"
- @echo " xml to make Docutils-native XML files"
- @echo " pseudoxml to make pseudoxml-XML files for display purposes"
- @echo " linkcheck to check all external links for integrity"
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
-
-clean:
- rm -rf $(BUILDDIR)/*
-
-install-dir:
- install -d -m 0755 ${DOCDESTDIR}
-
-html:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-install-html: install-dir
- if test -d ${BUILDDIR}/html; then \
- cp -r ${BUILDDIR}/html ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-dirhtml:
- $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-install-dirhtml: install-dir
- if test -d ${BUILDDIR}/dirhtml; then \
- cp -r ${BUILDDIR}/dirhtml ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-singlehtml:
- $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
- @echo
- @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
-
-install-singlehtml: install-dir
- if test -d ${BUILDDIR}/singlehtml; then \
- cp -r ${BUILDDIR}/singlehtml ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-pickle:
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
- @echo
- @echo "Build finished; now you can process the pickle files."
-
-install-pickle: install-dir
- if test -d ${BUILDDIR}/pickle; then \
- cp -r ${BUILDDIR}/pickle ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-json:
- $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
- @echo
- @echo "Build finished; now you can process the JSON files."
-
-install-json: install-dir
- if test -d ${BUILDDIR}/json; then \
- cp -r ${BUILDDIR}/json ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-htmlhelp:
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
- @echo
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-install-htmlhelp: install-dir
- if test -d ${BUILDDIR}/htmlhelp; then \
- cp -r ${BUILDDIR}/htmlhelp ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-qthelp:
- $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
- @echo
- @echo "Build finished; now you can run "qcollectiongenerator" with the" \
- ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/SoS.qhcp"
- @echo "To view the help file:"
- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/SoS.qhc"
-
-install-qthelp: install-dir
- if test -d ${BUILDDIR}/qthelp; then \
- cp -r ${BUILDDIR}/qthelp ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-devhelp:
- $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
- @echo
- @echo "Build finished."
- @echo "To view the help file:"
- @echo "# mkdir -p $$HOME/.local/share/devhelp/SoS"
- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/SoS"
- @echo "# devhelp"
-
-epub:
- $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
- @echo
- @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
-
-install-epub: install-dir
- if test -d ${BUILDDIR}/epub; then \
- cp -r ${BUILDDIR}/epub ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-latex:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo
- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
- @echo "Run \`make' in that directory to run these through (pdf)latex" \
- "(use \`make latexpdf' here to do that automatically)."
-
-install-latex: install-dir
- if test -d ${BUILDDIR}/latex; then \
- cp -r ${BUILDDIR}/latex ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-latexpdf:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through pdflatex..."
- $(MAKE) -C $(BUILDDIR)/latex all-pdf
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-latexpdfja:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through platex and dvipdfmx..."
- $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-text:
- $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
- @echo
- @echo "Build finished. The text files are in $(BUILDDIR)/text."
-
-install-text: install-dir
- if test -d ${BUILDDIR}/text; then \
- cp -r ${BUILDDIR}/text ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-man:
- $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
- @echo
- @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
-
-install-man:
- if test -d ${BUILDDIR}/man; then \
- gzip -c ${BUILDDIR}/man/sos.1 > ${BUILDDIR}/man/sos.1.gz; \
- install -m644 ${BUILDDIR}/man/sos.1.gz $(DESTDIR)/usr/share/man/man1; \
- else \
- exit 0; \
- fi
-
-texinfo:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo
- @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
- @echo "Run \`make' in that directory to run these through makeinfo" \
- "(use \`make info' here to do that automatically)."
-
-install-texinfo: install-dir
- if test -d ${BUILDDIR}/texinfo; then \
- cp -r ${BUILDDIR}/texinfo ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-info:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo "Running Texinfo files through makeinfo..."
- make -C $(BUILDDIR)/texinfo info
- @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
-
-install-info: install-dir install-texinfo
-
-gettext:
- $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
- @echo
- @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
-
-install-gettext: install-dir
- if test -d ${BUILDDIR}/locale; then \
- cp -r ${BUILDDIR}/locale ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-changes:
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
- @echo
- @echo "The overview file is in $(BUILDDIR)/changes."
-
-install-changes: install-dir
- if test -d ${BUILDDIR}/changes; then \
- cp -r ${BUILDDIR}/changes ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-linkcheck:
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
- @echo
- @echo "Link check complete; look for any errors in the above output " \
- "or in $(BUILDDIR)/linkcheck/output.txt."
-
-install-linkcheck: install-dir
- if test -d ${BUILDDIR}/linkcheck; then \
- cp -r ${BUILDDIR}/linkcheck ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-doctest:
- $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
- @echo "Testing of doctests in the sources finished, look at the " \
- "results in $(BUILDDIR)/doctest/output.txt."
-
-install-doctest: install-dir
- if test -d ${BUILDDIR}/doctest; then \
- cp -r ${BUILDDIR}/doctest ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-xml:
- $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
- @echo
- @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
-
-install-xml: install-dir
- if test -d ${BUILDDIR}/xml; then \
- cp -r ${BUILDDIR}/xml ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-pseudoxml:
- $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
- @echo
- @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
-
-install-pseudoxml: install-dir
- if test -d ${BUILDDIR}/pseudoxml; then \
- cp -r ${BUILDDIR}/pseudoxml ${DOCDESTDIR}; \
- else \
- exit 0; \
- fi
-
-install: install-html install-dirhtml install-singlehtml install-pickle install-json install-htmlhelp install-qthelp install-epub install-latex install-text install-man install-texinfo install-info install-gettext install-changes install-linkcheck install-doctest install-xml install-pseudoxml
diff --git a/po/Makefile b/po/Makefile
deleted file mode 100644
index e79a4a3b..00000000
--- a/po/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-# What is this package?
-NLSPACKAGE = sos
-POTFILE = $(NLSPACKAGE).pot
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = $(INSTALL) -m 644
-INSTALL_DIR = /usr/bin/install -d
-
-# destination directory
-INSTALL_NLS_DIR = $(DESTDIR)/usr/share/locale
-
-# PO catalog handling
-MSGMERGE = msgmerge -v
-XGETTEXT = xgettext --default-domain=$(NLSPACKAGE) \
- --add-comments --language=python
-MSGFMT = msgfmt --statistics --verbose
-
-# What do we need to do
-POFILES = $(wildcard *.po)
-MOFILES = $(patsubst %.po,%.mo,$(POFILES))
-PYSRC = $(wildcard ../sos/*.py)
-SRCFILES = $(PYSRC)
-
-all:: update-po $(MOFILES)
-
-$(POTFILE):
- $(XGETTEXT) --keyword=_ --keyword=N_ $(SRCFILES)
- @if cmp -s $(NLSPACKAGE).po $(POTFILE); then \
- rm -f $(NLSPACKAGE).po; \
- else \
- mv -f $(NLSPACKAGE).po $(POTFILE); \
- fi; \
-
-update-po: Makefile $(POTFILE) refresh-po
-
-refresh-po: Makefile
- for cat in $(POFILES); do \
- lang=`basename $$cat .po`; \
- if $(MSGMERGE) $$lang.po $(POTFILE) > $$lang.pot ; then \
- mv -f $$lang.pot $$lang.po ; \
- echo "$(MSGMERGE) of $$lang succeeded" ; \
- else \
- echo "$(MSGMERGE) of $$lang failed" ; \
- rm -f $$lang.pot ; \
- fi \
- done
-
-clean:
- @rm -fv *mo *~ .depend
-
-install: $(MOFILES)
- @for n in $(MOFILES); do \
- l=`basename $$n .mo`; \
- $(INSTALL_DIR) $(INSTALL_NLS_DIR)/$$l/LC_MESSAGES; \
- $(INSTALL_DATA) --verbose $$n $(INSTALL_NLS_DIR)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \
- done
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-.PHONY: missing depend $(POTFILE)
diff --git a/sos/Makefile b/sos/Makefile
deleted file mode 100644
index 5cb9b4a3..00000000
--- a/sos/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(wildcard *.py) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
diff --git a/sos/collector/Makefile b/sos/collector/Makefile
deleted file mode 100644
index 4cb2db4d..00000000
--- a/sos/collector/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/sos/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(PYFILES) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
diff --git a/sos/collector/clusters/Makefile b/sos/collector/clusters/Makefile
deleted file mode 100644
index 4cb2db4d..00000000
--- a/sos/collector/clusters/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/sos/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(PYFILES) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
diff --git a/sos/policies/Makefile b/sos/policies/Makefile
deleted file mode 100644
index 4cb2db4d..00000000
--- a/sos/policies/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/sos/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(PYFILES) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
diff --git a/sos/report/Makefile b/sos/report/Makefile
deleted file mode 100644
index 4cb2db4d..00000000
--- a/sos/report/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/sos/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(PYFILES) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
diff --git a/sos/report/plugins/Makefile b/sos/report/plugins/Makefile
deleted file mode 100644
index 4cb2db4d..00000000
--- a/sos/report/plugins/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PYTHON=python3
-PACKAGE = $(shell basename `pwd`)
-PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/sos/$(PACKAGE)
-
-all:
- echo "nada"
-
-clean:
- rm -f *.pyc *.pyo *~
-
-install:
- mkdir -p $(DESTDIR)/$(PKGDIR)
- for p in $(PYFILES) ; do \
- install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
- done
- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"