-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
34 lines (25 loc) · 982 Bytes
/
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
SUBDIRS = guesstz
EXTRA_DIST = tzdata
# Install the pkg-config file
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = cyrus-timezones.pc guesstz.pc
DISTCLEANFILES = cyrus-timezones.pc guesstz.pc
myvzic=$(bindir)/vzic
all-local: zoneinfo
zoneinfo: guesstz/cyr_guesstz
@echo "Generating zoneinfo files"
$(myvzic) --pure --olson-dir ${srcdir}/tzdata --output-dir zoneinfo
$(INSTALL_DATA) ${srcdir}/tzdata/version zoneinfo
@echo "Generating guesstz file"
./guesstz/cyr_guesstz -z zoneinfo zoneinfo/guesstz.db
# Always use $datadir/cyrus-timezones rather than $pkgdatadir,
# so we can be sure to report the correct path in pkg-config.
mypkgdatadir = $(DESTDIR)$(datadir)/cyrus-timezones
install-data-local: zoneinfo
@echo "Installing zoneinfo in $(mypkgdatadir)"
$(INSTALL) -d zoneinfo/ $(mypkgdatadir)
find zoneinfo -type f -exec $(INSTALL_DATA) -D {} $(mypkgdatadir)/{} \;
uninstall-local:
rm -rf $(builddir)/zoneinfo
rm -rf $(mypkgdatadir)/zoneinfo
export