summaryrefslogtreecommitdiff
path: root/rpmlint-checks-master/Makefile
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2014-01-14 13:09:42 +0100
committerMaciej Wereski <m.wereski@partner.samsung.com>2014-07-15 15:41:01 +0200
commit1a83bfdc08996e745418a22a3c51a5297571cf7d (patch)
treebda671282cbb4cb13b64e6f57852050db88366c3 /rpmlint-checks-master/Makefile
parentf8865ef4b0284f0428c4720ff2a444a63af7221f (diff)
downloadrpmlint-1a83bfdc08996e745418a22a3c51a5297571cf7d.tar.gz
rpmlint-1a83bfdc08996e745418a22a3c51a5297571cf7d.tar.bz2
rpmlint-1a83bfdc08996e745418a22a3c51a5297571cf7d.zip
Incorporate files from tarball into git
Bug-Tizen: PTREL-604 Change-Id: I41c03fddcaebb56696c338696000541b85405c01 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'rpmlint-checks-master/Makefile')
-rw-r--r--rpmlint-checks-master/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/rpmlint-checks-master/Makefile b/rpmlint-checks-master/Makefile
new file mode 100644
index 0000000..ade37b7
--- /dev/null
+++ b/rpmlint-checks-master/Makefile
@@ -0,0 +1,46 @@
+LIBDIR=/usr/share/rpmlint
+
+PYTHON = python
+
+DEFAULT = *.py
+EXPERIMENTAL = experimental/*.py
+OBSOLETE = obsolete/*.py
+TEST = test/*/*.spec
+
+all: default experimental obsolete
+
+default:
+ if [ "x${COMPILE_PYC}" = "x1" ] ; then \
+ $(PYTHON) -m py_compile *.py ; \
+ fi
+ $(PYTHON) -O -m py_compile *.py
+
+experimental:
+ if [ "x${COMPILE_PYC}" = "x1" ] ; then \
+ $(PYTHON) -m py_compile $(EXPERIMENTAL) ; \
+ fi
+ $(PYTHON) -O -m py_compile $(EXPERIMENTAL)
+
+obsolete:
+ if [ "x${COMPILE_PYC}" = "x1" ] ; then \
+ $(PYTHON) -m py_compile $(OBSOLETE) ; \
+ fi
+ $(PYTHON) -O -m py_compile $(OBSOLETE)
+
+clean:
+ rm -f *~ *.pyc *.pyo
+ rm -f experimemntal/*~ experimental/*.pyc experimental/*.pyo
+ rm -f obsolete/*~ obsolete/*.pyc obsolete/*.pyo
+
+install: all
+ mkdir -p $(DESTDIR)$(LIBDIR)/experimental
+ mkdir -p $(DESTDIR)$(LIBDIR)/obsolete
+ -cp -p *.pyc $(DESTDIR)$(LIBDIR)
+ cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
+ -cp -p experimental/*.pyc $(DESTDIR)$(LIBDIR)/experimental
+ cp -p experimental/*.py experimental/*.pyo $(DESTDIR)$(LIBDIR)/experimental
+ -cp -p obsolete/*.pyc $(DESTDIR)$(LIBDIR)/obsolete
+ cp -p obsolete/*.py obsolete/*.pyo $(DESTDIR)$(LIBDIR)/obsolete
+
+.PHONY: all clean experimental install obsolete
+