~ubuntu-branches/ubuntu/vivid/logrotate/vivid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-11-07 14:57:09 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081107145709-s8ktufsiktmkuidl
Tags: 3.7.7-1ubuntu1
* Merge with Debian experimental (LP: #64964). Remaining Ubuntu changes:
  - debian/control: Drop mailx to Suggests for Ubuntu; it's only used on
    request, and we don't configure an MTA by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
VERSION = $(shell awk '/Version:/ { print $$2 }' logrotate.spec)
2
 
CVSROOT = $(shell cat CVS/Root)
3
 
CVSTAG = r$(subst .,-,$(VERSION))
4
2
OS_NAME = $(shell uname -s)
5
3
LFS = $(shell echo `getconf LFS_CFLAGS 2>/dev/null`)
6
4
CFLAGS = -Wall -D_GNU_SOURCE -D$(OS_NAME) -DVERSION=\"$(VERSION)\" $(RPM_OPT_FLAGS) $(LFS)
7
5
PROG = logrotate
8
6
MAN = logrotate.8
9
7
LOADLIBES = -lpopt
 
8
SVNURL= svn+ssh://svn.fedorahosted.org/svn/logrotate
 
9
SVNPUBURL = http://svn.fedorahosted.org/svn/logrotate
 
10
SVNTAG = r$(subst .,-,$(VERSION))
10
11
 
11
12
ifeq ($(WITH_SELINUX),yes)
12
13
CFLAGS += -DWITH_SELINUX
111
112
        co RCS/*,v
112
113
        (cd examples; co RCS/*,v)
113
114
 
114
 
cvstag:
115
 
        cvs tag -cF $(CVSTAG) .
 
115
svntag:
 
116
        svn copy $(SVNURL)/trunk $(SVNURL)/tags/$(SVNTAG) -m "Release $(VERSION)"
116
117
 
117
 
archive: cvstag
 
118
create-archive:
118
119
        @rm -rf /tmp/logrotate-$(VERSION) /tmp/logrotate
119
 
        @cd /tmp; cvs -d $(CVSROOT) export -r$(CVSTAG) logrotate; mv logrotate logrotate-$(VERSION)
 
120
        @cd /tmp; svn export $(SVNPUBURL)/tags/$(SVNTAG) logrotate-$(VERSION)
120
121
        @cd /tmp/logrotate-$(VERSION)
121
122
        @cd /tmp; tar czSpf logrotate-$(VERSION).tar.gz logrotate-$(VERSION)
122
123
        @rm -rf /tmp/logrotate-$(VERSION)
125
126
        @echo " "
126
127
        @echo "The final archive is ./logrotate-$(VERSION).tar.gz."
127
128
 
 
129
archive: clean svntag create-archive
 
130
 
128
131
ifeq (.depend,$(wildcard .depend))
129
132
include .depend
130
133
endif