aboutsummaryrefslogtreecommitdiffstats
path: root/libical/zoneinfo/Makefile.am
blob: 70f660d62003f9a15e9b63c06a76e7c96e9dd433 (plain) (blame)
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

zoneinfodatadir = $(datadir)/$(PACKAGE)/zoneinfo

zoneinfodata_DATA = zones.tab

DIRS = \
    Africa          \
    America         \
    America/Indiana     \
    America/Kentucky    \
    America/North_Dakota    \
    Antarctica      \
    Arctic          \
    Asia            \
    Atlantic        \
    Australia       \
    Europe          \
    Indian          \
    Pacific


install-data-local:
    @$(NORMAL_INSTALL)
    for dir in $(DIRS); do \
      $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/zoneinfo/$$dir; \
      for tzfile in $(srcdir)/$$dir/*.ics; do \
        $(INSTALL_DATA) $$tzfile $(DESTDIR)$(datadir)/$(PACKAGE)/zoneinfo/$$dir; \
      done \
    done

dist-hook:
    for dir in $(DIRS); do \
      mkdir $(distdir)/$$dir; \
      for tzfile in $(srcdir)/$$dir/*.ics; do \
        cp -p $$tzfile $(distdir)/$$dir; \
      done \
    done

EXTRA_DIST = $(zoneinfodata_DATA)