SHELL := /bin/sh
SRCROOT=$(shell pwd)
OBJROOT=$(SRCROOT)/build
DSTROOT=$(OBJROOT)
SYMROOT=$(OBJROOT)
RC_ARCHS=
INSTALL = /usr/bin/install
ifeq "$(OS)" "Windows_NT"
INSTALLDIR = /AppleInternal/bin/tz
else
INSTALLDIR = /usr/local/share/tz
endif
installsrc :
if test ! -d $(SRCROOT); then mkdir $(SRCROOT); fi;
tar cf - ./makefile ./tz*.tar.gz ./boundaries | (cd $(SRCROOT) ; tar xfp -);
installhdrs :
echo "Nothing to do for installhdrs"
install : installhdrs
if test ! -d $(DSTROOT)$(INSTALLDIR)/; then \
$(INSTALL) -d -m 0775 $(DSTROOT)$(INSTALLDIR)/; \
fi;
if test ! -d $(DSTROOT)$(INSTALLDIR)/boundaries/; then \
$(INSTALL) -d -m 0775 $(DSTROOT)$(INSTALLDIR)/boundaries/; \
fi;
$(INSTALL) -b -m 0644 $(SRCROOT)/tz*.tar.gz $(DSTROOT)$(INSTALLDIR)
$(INSTALL) -b -m 0644 $(SRCROOT)/boundaries/*.gpx $(DSTROOT)$(INSTALLDIR)/boundaries
(cd $(DSTROOT)$(INSTALLDIR); \
ln -sf $(notdir $(lastword $(wildcard $(SRCROOT)/tzdata*.tar.gz))) latest_tzdata.tar.gz; \
ln -sf $(notdir $(lastword $(wildcard $(SRCROOT)/tzcode*.tar.gz))) latest_tzcode.tar.gz;);
clean :