File: release.mak

package info (click to toggle)
gst0.10-python 0.10.19-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,032 kB
  • ctags: 1,854
  • sloc: sh: 11,143; python: 11,084; ansic: 1,772; perl: 1,585; makefile: 559
file content (25 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# include this snippet to add a common release: target by using
# include $(top_srcdir)/common/release.mak

# make bz2 as well
AUTOMAKE_OPTIONS = dist-bzip2

release: dist
	$(MAKE) $(PACKAGE)-$(VERSION).tar.gz.md5
	$(MAKE) $(PACKAGE)-$(VERSION).tar.bz2.md5

# generate md5 sum files
%.md5: %
	md5sum $< > $@

# check that no marshal or enumtypes files are included
# this in turn ensures that distcheck fails for missing .list files which is currently
# shadowed when the corresponding .c and .h files are included.
distcheck-hook:
	@test "x" = "x`find $(distdir) -name \*-enumtypes.[ch] | grep -v win32`" && \
	test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
	( $(ECHO) "*** Leftover enumtypes or marshal files in the tarball." && \
          $(ECHO) "*** Make sure the following files are not disted:" && \
          find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \
          find $(distdir) -name \*-marshal.[ch] && \
          false )