Modified the vzic makefile to generate new zoneinfo data by fetching the latest tzdata file from ietf.org/timezones/tzdata-latest.tar.gz and running vzic to update the .ics files as needed.
- Legacy-Id: 9087
This commit is contained in:
parent
7bd647c0d6
commit
884d751199
|
@ -49,7 +49,7 @@ CFLAGS = -g -DOLSON_DIR=\"$(OLSON_DIR)\" -DPRODUCT_ID='"$(PRODUCT_ID)"' -DTZID_P
|
|||
|
||||
OBJECTS = vzic.o vzic-parse.o vzic-dump.o vzic-output.o
|
||||
|
||||
all: vzic
|
||||
all: vzic zoneinfo
|
||||
|
||||
vzic: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) $(GLIB_LDADD) -o vzic
|
||||
|
@ -57,6 +57,12 @@ vzic: $(OBJECTS)
|
|||
test-vzic: test-vzic.o
|
||||
$(CC) test-vzic.o $(LIBICAL_LDADD) -o test-vzic
|
||||
|
||||
zoneinfo: vzic
|
||||
mkdir -p tzdata
|
||||
cd tzdata; wget -N http://www.ietf.org/timezones/tzdata-latest.tar.gz
|
||||
cd tzdata; tar xzf tzdata-latest.tar.gz
|
||||
vzic --olson-dir tzdata --pure
|
||||
|
||||
# Dependencies.
|
||||
$(OBJECTS): vzic.h
|
||||
vzic.o vzic-parse.o: vzic-parse.h
|
||||
|
@ -83,8 +89,6 @@ test-changes: vzic test-vzic
|
|||
diff -ru zoneinfo/ChangesVzic test-output
|
||||
|
||||
clean:
|
||||
-rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o
|
||||
-rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o tzdata
|
||||
|
||||
.PHONY: clean perl-dump test-parse
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue