1999-10-01 15:15:25 +08:00
|
|
|
#############################################################################
|
|
|
|
# File : Makefile
|
|
|
|
# Package : rpmlint
|
|
|
|
# Author : Frederic Lepied
|
|
|
|
# Created on : Mon Sep 30 13:20:18 1999
|
|
|
|
# Version : $Id$
|
|
|
|
# Purpose : rules to manage the files.
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
BINDIR=/usr/bin
|
|
|
|
LIBDIR=/usr/share/rpmlint
|
1999-10-16 19:10:52 +08:00
|
|
|
ETCDIR=/etc/rpmlint
|
|
|
|
|
|
|
|
FILES= rpmlint *.py INSTALL README COPYING ChangeLog Makefile config
|
1999-10-01 15:15:25 +08:00
|
|
|
|
|
|
|
all:
|
1999-10-24 06:08:05 +08:00
|
|
|
./compile.py [A-Z]*.py
|
1999-10-01 15:15:25 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.pyc *.pyo
|
|
|
|
|
|
|
|
install:
|
1999-10-16 19:10:52 +08:00
|
|
|
-mkdir -p $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(ETCDIR)
|
1999-10-06 20:58:06 +08:00
|
|
|
cp -p rpmlint.py *.pyo $(DESTDIR)$(LIBDIR)
|
1999-10-16 19:10:52 +08:00
|
|
|
cp -p rpmlint $(DESTDIR)$(BINDIR)
|
|
|
|
cp -p config $(DESTDIR)$(ETCDIR)
|
1999-10-01 15:15:25 +08:00
|
|
|
|
|
|
|
dist:
|
|
|
|
VERSION=`python rpmlint.py -V|sed -e 's/rpmlint version //' -e 's/ Copyright (C) 1999 Frederic Lepied//'`; \
|
|
|
|
rm -f rpmlint-$$VERSION.tar.bz2; \
|
|
|
|
mkdir rpmlint-$$VERSION; \
|
|
|
|
ln $(FILES) rpmlint-$$VERSION/; \
|
1999-10-06 20:32:52 +08:00
|
|
|
tar cvf rpmlint-$$VERSION.tar rpmlint-$$VERSION;\
|
|
|
|
bzip2 -9vf rpmlint-$$VERSION.tar;\
|
1999-10-01 15:15:25 +08:00
|
|
|
rm -rf rpmlint-$$VERSION
|
|
|
|
|
1999-10-06 20:58:06 +08:00
|
|
|
ndist:
|
|
|
|
TEMP=$$$$;\
|
|
|
|
rm -f rpmlint.tar.bz2; \
|
|
|
|
mkdir -p $$TEMP/rpmlint; \
|
|
|
|
ln $(FILES) $$TEMP/rpmlint/; \
|
|
|
|
tar cvf rpmlint.tar -C $$TEMP rpmlint;\
|
|
|
|
bzip2 -9vf rpmlint.tar;\
|
|
|
|
rm -rf $$TEMP
|
|
|
|
|
1999-10-01 15:15:25 +08:00
|
|
|
# Makefile ends here
|