1# Common Makefile
2include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make
3
4TZDIR:=$(shell sed -n '/define[[:space:]]*TZDIR/s/[^"]*"\([^"]*\)".*/\1/p' $(SDKROOT)/usr/include/tzfile.h)
5
6# 13121743: We need to modify bsd.sb depending on the value of TZDIR for the
7# current platform, but we don't need a copy of bsd.sb in /usr/share/sandbox.
8# So we make a modified copy in $(SYMROOT), and the top-level Makefile can make
9# copies of it where they are needed.
10install::
11	sed 's,TO-BE-REPLACED-WITH-TZDIR,$(TZDIR),' $(SRCROOT)/usr/share/sandbox/bsd.sb >$(SYMROOT)/bsd.sb
12