source: soft/build_system/build_system/repsys/tags/V1_5_4_1mdk/Makefile @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 1.6 KB
Line 
1#---------------------------------------------------------------
2# Project         : Mandriva Linux
3# Module          : repsys
4# File            : Makefile
5# Version         : $Id: Makefile 831 2005-12-07 10:44:44Z  $
6# Author          : Frederic Lepied
7# Created On      : Wed Dec  7 11:33:09 2005
8#---------------------------------------------------------------
9
10PACKAGE=repsys
11VERSION:=$(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec)
12RELEASE:=$(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec)
13TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
14
15FILES = ChangeLog Makefile MANIFEST.in PKG-INFO create-srpm getsrpm-mdk rebrand-mdk \
16        repsys repsys.conf repsys.spec setup.cfg setup.py RepSys/*.py RepSys/{cgi,commands}/*.py
17
18# rules to build a test rpm
19
20localrpm: localdist buildrpm
21
22localdist: cleandist dir localcopy tar
23
24cleandist:
25        rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
26
27dir:
28        mkdir $(PACKAGE)-$(VERSION)
29
30localcopy:
31        tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION)
32
33tar:
34        tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
35        bzip2 -9vf $(PACKAGE)-$(VERSION).tar
36        rm -rf $(PACKAGE)-$(VERSION)
37
38buildrpm:
39        rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2
40
41# rules to build a distributable rpm
42
43rpm: changelog cvstag dist buildrpm
44
45dist: cleandist dir export tar
46
47export:
48        cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE)
49
50cvstag:
51        cvs tag $(CVSTAGOPT) $(TAG)
52
53changelog: ../common/username
54        cvs2cl -U ../common/username -I ChangeLog
55        rm -f ChangeLog.bak
56        cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
57
58# Local variables:
59# mode: makefile
60# End:
61#
62# Makefile ends here
Note: See TracBrowser for help on using the repository browser.