52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
#############################################################################
|
|
# 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
|
|
ETCDIR=/etc/rpmlint
|
|
|
|
FILES= rpmlint *.py INSTALL README README.CVS COPYING ChangeLog Makefile config
|
|
|
|
all:
|
|
./compile.py [A-Z]*.py
|
|
|
|
clean:
|
|
rm -f *~ *.pyc *.pyo
|
|
|
|
install:
|
|
-mkdir -p $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(ETCDIR)
|
|
cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
|
|
cp -p rpmlint $(DESTDIR)$(BINDIR)
|
|
cp -p config $(DESTDIR)$(ETCDIR)
|
|
|
|
dist:
|
|
VERSION=`python rpmlint.py -V|sed -e 's/rpmlint version //' -e 's/ Copyright (C).*//'`; \
|
|
rm -f rpmlint-$$VERSION.tar.bz2; \
|
|
mkdir rpmlint-$$VERSION; \
|
|
ln $(FILES) rpmlint-$$VERSION/; \
|
|
tar cvf rpmlint-$$VERSION.tar rpmlint-$$VERSION;\
|
|
bzip2 -9vf rpmlint-$$VERSION.tar;\
|
|
rm -rf rpmlint-$$VERSION
|
|
|
|
changelog: ../common/username
|
|
cvs2cl -U ../common/username -I ChangeLog
|
|
rm -f ChangeLog.bak
|
|
cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
|
|
|
|
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
|
|
|
|
# Makefile ends here
|