-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile.am
61 lines (53 loc) · 1.97 KB
/
Makefile.am
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
# Copyright 2020 University Corporation for Atmospheric Research. All rights
# reserved.
#
# 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 = \
CHANGE_LOG \
CMakeLists.txt \
COPYRIGHT \
udunits2.html \
udunits2.pdf \
version.texi
AM_MAKEINFOHTMLFLAGS = --no-split
RSYNC_FLAGS = --rsh=ssh --rsync-path=/usr/bin/rsync
distName = $(PACKAGE)-$(VERSION)
distArchive = $(distName).tar.gz
CLEANFILES = *~
MAINTAINERCLEANFILES = *.gz build *~
DISTCLEANFILES = *.log *.gz build *~
dist_doc_DATA = CHANGE_LOG COPYRIGHT README
ftp: dist
scp $(distArchive) ftp.unidata.ucar.edu:/web/ftp/pub/$(PACKAGE)/
web-update: install install-html
cd $(DESTDIR)$(htmldir) && \
rsync $(RSYNC_FLAGS) -aCu --delete --delete-excluded \
$(DESTDIR)$(datarootdir)/ \
www.unidata.ucar.edu:/web/content/software/$(PACKAGE)/$(distName)
ssh www.unidata.ucar.edu rm -f /web/content/software/$(PACKAGE)/$(PACKAGE)-current
ssh www.unidata.ucar.edu ln -s $(distName) /web/content/software/$(PACKAGE)/$(PACKAGE)-current
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
release: ftp web-update
.PHONY: hostchecks hostcheck remote-checks web-update ftp \
download-update available release
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 $@