forked from Unidata/UDUNITS-2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
123 lines (112 loc) · 3.88 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Copyright 2008, 2009 University Corporation for Atmospheric Research
#
# This file is part of the UDUNITS-2 package. See the file LICENSE
# in the top-level source-directory of the package for copying and
# redistribution conditions.
#
## Process this file with automake to produce Makefile.in
if COND_EXPAT
SUBDIRS = expat lib prog
else
SUBDIRS = lib prog
endif
DIST_SUBDIRS = expat lib prog test
info_TEXINFOS = udunits2.texi
udunits2_TEXINFOS = success.texi failure.texi make.texi
EXTRA_DIST = \
ANNOUNCEMENT \
udunits2.html \
udunits2.pdf \
CHANGE_LOG \
LICENSE \
texinfo.tex
AM_MAKEINFOHTMLFLAGS = --no-split
RSYNC_FLAGS = --rsh=ssh --rsync-path=/opt/bin/rsync
distName = $(PACKAGE)-$(VERSION)
distArchive = $(distName).tar.gz
DISTCLEANFILES = *.log $(distArchive)
success.texi: test/results.tab
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
sort -u -t : -k 2,2 -k 4,4 -k 5,5 test/results.tab | \
awk -F: ' \
BEGIN { \
print "@multitable {@code{Linux 2.6.18-1.2257.fc5smp}} {@code{/opt/csw/gcc4/bin/gcc}} {@code{--disable-shared}}"; \
print "@headitem O/S @tab Compiler @tab @code{configure} Option"; \
} \
$$6 == 1 { \
printf "@item @code{%s} @tab @code{%s} @tab @code{%s}\n", \
$$2, $$4, $$5; \
} \
END { \
print "@end multitable"; \
}' >success.texi
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
failure.texi: test/results.tab
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
sort -u -t : -k 2,2 -k 4,4 -k 5,5 test/results.tab | \
awk -F: ' \
BEGIN { \
print "@multitable {@code{Linux 2.6.18-1.2257.fc5smp}} {@code{/opt/SUNWspro/bin/c99}} {@code{--disable-shared}}"; \
print "@headitem O/S @tab Compiler @tab @code{configure} Option"; \
} \
$$6 == 0 { \
printf "@item @code{%s} @tab @code{%s} @tab @code{%s}\n", \
$$2, $$4, $$5; \
} \
END { \
print "@end multitable"; \
}' >failure.texi
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
make.texi: test/results.tab
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
awk -F: '$$6 == 1 {printf "%s:%s\n", $$2, $$3}' test/results.tab | \
sort -t : -u | \
awk -F: ' \
BEGIN { \
print "@multitable {@code{Linux 2.6.18-1.2257.fc5smp}} {@code{/usr/bin/posix/make}}"; \
print "@headitem O/S @tab @code{make} Utility"; \
} \
{ \
printf "@item @code{%s} @tab @code{%s}\n", $$1, $$2; \
} \
END { \
print "@end multitable"; \
}' >$@
sleep 2 # to accomodate broken HP-UX B.11.00 make(1)
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 \
[email protected] </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 success.texi failure.texi make.texi LICENSE
udunits2.html: version.texi success.texi failure.texi make.texi LICENSE
udunits2.pdf: version.texi success.texi failure.texi make.texi LICENSE
$(srcdir)/version.texi: $(srcdir)/stamp-vti
@cp $(srcdir)/stamp-vti $@