File: Makefile.am

package info (click to toggle)
udunits 2.2.17-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,616 kB
  • ctags: 1,624
  • sloc: sh: 11,255; ansic: 10,793; xml: 2,179; yacc: 491; lex: 331; makefile: 230
file content (73 lines) | stat: -rw-r--r-- 2,187 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 2013 University Corporation for Atmospheric Research
#
# This file is part of the UDUNITS-2 package.  See the file COPYRIGHT
# in the top-level source-directory of the package for copying and
# redistribution conditions.
#
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS		= -I m4
SUBDIRS			= lib prog
DIST_SUBDIRS		= lib prog
info_TEXINFOS		= udunits2.texi
EXTRA_DIST = \
    ANNOUNCEMENT \
    CHANGE_LOG \
    CMakeLists.txt \
    config.h.cmake \
    COPYRIGHT \
    udunits2.html \
    udunits2.pdf
AM_MAKEINFOHTMLFLAGS 	= --no-split
RSYNC_FLAGS		= --rsh=ssh --rsync-path=/opt/bin/rsync
distName 		= $(PACKAGE)-$(VERSION)
distArchive 		= $(distName).tar.gz
DISTCLEANFILES		= *.log $(distArchive)
dist_doc_DATA		= CHANGE_LOG COPYRIGHT README

remote-checks:	dist
	cd test && $(MAKE) $(AM_MAKEFLAGS) $@
	$(MAKE) udunits2.html

ftp:	dist
	-git commit -a
	git tag -f v$(VERSION)
	cp $(distArchive) /web/ftp/pub/$(PACKAGE)/
	mailx -s '$(distName) now available' -a CHANGE_LOG \
	    ed@unidata.ucar.edu </dev/null

web-update:	install install-html
	cd $(DESTDIR)$(htmldir) \
	&& rsync $(RSYNC_FLAGS) -aCu --delete --delete-excluded \
	    *.html \
	    /web/content/software/$(PACKAGE)/$(distName)
	cd $(DESTDIR)$(pkgdatadir) \
	&& rsync $(RSYNC_FLAGS) -aCu --delete \
	    *.xml \
	    conan:/content/software/$(PACKAGE)/$(distName)
	echo 'cd /content/software/$(PACKAGE) && \
	    rm $(PACKAGE)-2 && ln -s $(distName) $(PACKAGE)-2' | \
	    ssh conan

download-update:
	cat /web/content/downloads/udunits/toc.xml \
	    | sed -e \
		's/"%current%" value=".*"/"%current%" value="$(VERSION)"/' \
		>toc.xml.new
	cp /web/content/downloads/$(PACKAGE)/toc.xml \
	    /web/content/downloads/$(PACKAGE)/toc.xml.old
	mv toc.xml.new /web/content/downloads/udunits/toc.xml

available:	ftp web-update download-update

.PHONY:	hostchecks hostcheck remote-checks web-update ftp \
	download-update available

udunits2.info:	version.texi COPYRIGHT
udunits2.html:	version.texi COPYRIGHT
udunits2.pdf:	version.texi COPYRIGHT

$(srcdir)/version.texi:  $(srcdir)/stamp-vti
	@cp $(srcdir)/stamp-vti $@

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @PACKAGE@.pc