~ubuntu-branches/ubuntu/precise/preload/precise

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2009-06-29 12:48:22 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090629124822-9hdelcippq9qgj8u
Tags: 0.6.4-1
* New upstream release (Closes: #495549)
  * Improve argument handling (Closes: #508809)
* Use start-stop-daemon's --iosched option to set idle IO priority,
  don't patch preload itself to offer an option to use it.
* No more patches applied; quilt dropped as a build dep.
* Removed code from postinst that used to clean up state file from under
  /var/cache/.
* Standards-Version: 3.8.2 (no changes necessary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
SUBDIRS = doc src
6
6
 
7
 
EXTRA_DIST = bootstrap preload.spec
 
7
EXTRA_DIST = bootstrap
8
8
CLEANFILES = 
9
9
MAINTAINERCLEANFILES = \
10
10
                $(srcdir)/INSTALL \
37
37
 
38
38
.PHONY: indent
39
39
 
40
 
# Creating ChangeLog from CVS log, using cvs2cl(1):
41
 
 
42
 
MAINTAINERCLEANFILES += ChangeLog ChangeLog.bak
43
 
 
44
 
EXTRA_DIST += ChangeLog
45
 
 
46
 
ChangeLog: $(srcdir)/ChangeLog
47
 
 
48
 
$(srcdir)/ChangeLog:
49
 
        @if test -d "$(srcdir)/CVS"; then \
50
 
          (cd "$(srcdir)" && \
51
 
          ./missing --run cvs2cl --stdout --utc --FSF -U AUTHORS) > $@.tmp && mv -f $@.tmp $@ \
52
 
          || ($(RM) $@.tmp; \
53
 
              echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
54
 
              (test -f $@ || echo cvs2cl is required to generate this file >> $@)); \
55
 
        else \
56
 
          test -f $@ || \
57
 
          (echo A CVS checkout and cvs2cl is required to generate ChangeLog >&2 && \
58
 
          echo A CVS checkout and cvs2cl is required to generate this file >> $@); \
59
 
        fi
60
 
 
61
 
.PHONY: ChangeLog $(srcdir)/ChangeLog
62
 
 
63
40
# Creating logrotate and init-script, etc
64
41
 
65
42
EXTRA_DIST += preload.logrotate.in preload.init.in preload.sysconfig
111
88
 
112
89
# Some custom targets to make it easier to release things.
113
90
# Use either:
114
 
#               make release-check
 
91
#               make distcheck
115
92
# or            make release-publish
116
93
 
117
94
tar_file = $(distdir).tar.gz
118
95
sha1_file = $(tar_file).sha1
119
96
gpg_file = $(sha1_file).asc
120
97
 
121
 
rpm: dist-gzip
122
 
        rpmbuild -tb $(tar_file)
123
 
 
124
98
$(sha1_file): $(tar_file)
125
99
        sha1sum $^ > $@
126
100
 
128
102
        @echo "Please enter your GPG password to sign the checksum."
129
103
        gpg --armor --sign $^ 
130
104
 
131
 
release-verify-even-micro:
132
 
        @echo -n "Checking that $(VERSION) has an even micro component..."
133
 
        @test "`echo "$(VERSION)" | bc`" = "`echo "scale=1; $(VERSION)/2*2" | bc`" \
134
 
                || (echo "Ouch." && echo "The version micro component of '$(VERSION)' is not an even number." \
135
 
                && echo "The version in configure.in must be incremented before a new release." \
136
 
                && false)
137
 
        @echo "Good."
138
 
 
139
 
release-check: release-verify-even-micro distcheck
140
 
        -$(MAKE) $(AM_MAKEFLAGS) rpm
141
 
 
142
 
release-publish: release-check $(tar_file) $(sha1_file) $(gpg_file)
 
105
release-publish: distcheck $(tar_file) $(sha1_file) $(gpg_file)
143
106
        @echo ""
144
107
        @echo "Please send an announcement to $(MAILING_LIST)"
145
108
        @echo "including the following:"
160
123
        @echo " $(DOWNLOAD_URL_BASE)/$(gpg_file)"
161
124
        @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
162
125
        @echo ""
163
 
        @echo "An RPM package is available too.  You can access all from:"
 
126
        @echo "You can access these from:"
164
127
        @echo ""
165
128
        @echo " $(SITE_URL)"
166
129
        @echo "============================== CUT HERE =============================="
169
132
        @echo "Needless to say, upload the four files to the project"
170
133
        @echo "download server and push the NEWS entries to the news"
171
134
        @echo "section of the site."
172
 
        @echo ""
173
 
        @echo "Last but not least, do not forget to bump up the micro"
174
 
        @echo "version component to the next (odd) number and commit."
175
135
 
176
 
.PHONY: release-verify-even-micro release-check release-publish rpm
 
136
.PHONY: release-verify-even-micro release-check release-publish