summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-21 15:28:00 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-21 15:28:00 -0800
commitec6268183d43997c7fe124ca40a877edb0d7555b (patch)
treeeb871af5b189b33b9bdbb18fc7fd77d40b0e8c8f /Makefile
downloadrpmlint-ec6268183d43997c7fe124ca40a877edb0d7555b.tar.gz
rpmlint-ec6268183d43997c7fe124ca40a877edb0d7555b.tar.bz2
rpmlint-ec6268183d43997c7fe124ca40a877edb0d7555b.zip
Imported Upstream version 1.4upstream/1.4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile110
1 files changed, 110 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c55482e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,110 @@
+#############################################################################
+# File : Makefile
+# Package : rpmlint
+# Author : Frederic Lepied
+# Created on : Mon Sep 30 13:20:18 1999
+# Version : $Id: Makefile 1895 2011-12-04 16:23:10Z scop $
+# Purpose : rules to manage the files.
+#############################################################################
+
+BINDIR=/usr/bin
+LIBDIR=/usr/share/rpmlint
+ETCDIR=/etc
+MANDIR=/usr/share/man
+
+FILES = rpmlint *.py INSTALL README README.devel COPYING tools/*.py \
+ Makefile config rpmdiff rpmlint.bash-completion rpmlint.1 \
+ test.sh test/*.rpm test/*.spec test/*.py
+GENERATED = AUTHORS ChangeLog __version__.py
+
+PACKAGE = rpmlint
+PYTHON = python
+
+# update this variable to create a new release
+VERSION := 1.4
+TAG := $(shell echo "V$(VERSION)" | tr -- '-.' '__')
+SVNBASE = $(shell svn info . | grep URL | sed -e 's/[^:]*:\s*//' -e 's,/\(trunk\|tags/.\+\)$$,,')
+
+# for the [A-Z]* part
+LC_ALL:=C
+export LC_ALL
+
+all: __version__.py __isocodes__.py
+ if [ "x${COMPILE_PYC}" = "x1" ] ; then \
+ $(PYTHON) -m py_compile [A-Z]*.py __*__.py ; \
+ fi
+ $(PYTHON) -O -m py_compile [A-Z]*.py __*__.py
+
+clean:
+ rm -f *~ *.pyc *.pyo $(GENERATED)
+
+install: all
+ mkdir -p $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(ETCDIR)/$(PACKAGE) $(DESTDIR)$(MANDIR)/man1
+ -cp -p *.pyc $(DESTDIR)$(LIBDIR)
+ cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
+ cp -p rpmlint rpmdiff $(DESTDIR)$(BINDIR)
+ cp -p config $(DESTDIR)$(ETCDIR)/$(PACKAGE)
+ compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \
+ if [ "x$$compdir" = "x" ] ; then \
+ mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d ; \
+ cp -p rpmlint.bash-completion $(DESTDIR)$(ETCDIR)/bash_completion.d/rpmlint ; \
+ else \
+ mkdir -p $(DESTDIR)$$compdir ; \
+ cp -p rpmlint.bash-completion $(DESTDIR)$$compdir/rpmlint ; \
+ ln -s rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
+ fi
+ cp -p rpmlint.1 $(DESTDIR)$(MANDIR)/man1/rpmlint.1
+
+verify:
+ pychecker --limit=100 [A-Z]*.py __*__.py
+
+.PHONY: check
+
+check:
+ ./test.sh
+
+version:
+ @echo "$(VERSION)"
+
+
+dist: cleandist localcopy tar
+
+cleandist:
+ rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz
+
+localcopy: $(FILES) $(GENERATED)
+ mkdir $(PACKAGE)-$(VERSION)
+ cp -p --parents $(FILES) $(GENERATED) $(PACKAGE)-$(VERSION)
+
+tar: localcopy
+ tar cv --owner=root --group=root -f $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
+ xz -9evf $(PACKAGE)-$(VERSION).tar
+ rm -rf $(PACKAGE)-$(VERSION)
+
+export:
+ svn export $(SVNBASE)/tags/$(TAG) $(PACKAGE)-$(VERSION)
+
+tag:
+ @if svn list $(SVNBASE)/tags/$(TAG) &>/dev/null ; then \
+ echo "ERROR: tag \"$(TAG)\" probably already exists" ; \
+ exit 1 ; \
+ else \
+ echo 'svn copy -m "Tag $(TAG)." . $(SVNBASE)/tags/$(TAG)' ; \
+ svn copy -m "Tag $(TAG)." . $(SVNBASE)/tags/$(TAG) ; \
+ fi
+
+AUTHORS: authors.xml authors.xsl
+ xsltproc authors.xsl authors.xml | sort -u > $@
+
+ChangeLog: $(FILES) authors.xml
+ svn2cl --authors=authors.xml --group-by-day --reparagraph \
+ --strip-prefix=trunk
+
+__version__.py: Makefile
+ echo "# Automatically generated, do not edit" > $@
+ echo "__version__ = '$(VERSION)'" >> $@
+
+__isocodes__.py:
+ tools/generate-isocodes.py > $@
+
+# Makefile ends here