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

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

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

File size: 1.7 KB
Line 
1#---------------------------------------------------------------
2# Project         : Mandriva Linux
3# Module          : repsys
4# File            : Makefile
5# Version         : $Id: Makefile 4719 2007-01-29 18:14:56Z bogdano $
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        {compatv15,default,oldfashion,revno}.chlog \
17        repsys repsys.conf repsys.spec setup.cfg setup.py RepSys/*.py RepSys/{cgi,commands}/*.py
18
19# rules to build a test rpm
20
21localrpm: localdist buildrpm
22
23localdist: cleandist dir localcopy tar
24
25cleandist:
26        rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
27
28dir:
29        mkdir $(PACKAGE)-$(VERSION)
30
31localcopy:
32        tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION)
33
34tar:
35        tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
36        bzip2 -9vf $(PACKAGE)-$(VERSION).tar
37        rm -rf $(PACKAGE)-$(VERSION)
38
39buildrpm:
40        rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2
41
42# rules to build a distributable rpm
43
44rpm: changelog cvstag dist buildrpm
45
46dist: cleandist dir export tar
47
48export:
49        cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE)
50
51cvstag:
52        cvs tag $(CVSTAGOPT) $(TAG)
53
54changelog: ../common/username
55        cvs2cl -U ../common/username -I ChangeLog
56        rm -f ChangeLog.bak
57        cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
58
59# Local variables:
60# mode: makefile
61# End:
62#
63# Makefile ends here
Note: See TracBrowser for help on using the repository browser.