From: "P. J. McDermott" Subject: Makefile: Remove data prerequisites The tz makefile is shared between tzdata and tzcode, and the tzcode program targets depend on files only packed into tzdata. Before: oh-autobuild make[1]: Entering directory `/home/pj/distro/pkg/tzcode/tmp/src' sed \ -e 's|#!/bin/bash|#!/bin/bash|g' \ -e 's|AWK=[^}]*|AWK=awk|g' \ -e 's|\(PKGVERSION\)=.*|\1='\''(tzcode) '\''|' \ -e 's|\(REPORT_BUGS_TO\)=.*|\1=tz@iana.org|' \ -e 's|TZDIR=[^}]*|TZDIR=/usr/local/etc/zoneinfo|' \ -e 's|\(TZVERSION\)=.*|\1=2013g|' \ tzselect chmod +x tzselect (echo 'static char const PKGVERSION[]="(tzcode) ";' && \ echo 'static char const TZVERSION[]="2013g";' && \ echo 'static char const REPORT_BUGS_TO[]="tz@iana.org";') >version.h cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o zic.o zic.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o localtime.o localtime.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o asctime.o asctime.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o scheck.o scheck.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o ialloc.o ialloc.c make[1]: *** No rule to make target `yearistype.sh', needed by `yearistype'. Stop. make[1]: Leaving directory `/home/pj/distro/pkg/tzcode/tmp/src' make: *** [build] Error 2 With yearistype prerequisite removed: oh-autobuild make[1]: Entering directory `/home/pj/distro/pkg/tzcode/tmp/src' cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -o zic zic.o localtime.o asctime.o scheck.o ialloc.o cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o zdump.o zdump.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -o zdump zdump.o localtime.o ialloc.o asctime.c cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -c -o difftime.o difftime.c make[1]: *** No rule to make target `iso3166.tab', needed by `all'. Stop. make[1]: Leaving directory `/home/pj/distro/pkg/tzcode/tmp/src' make: *** [build] Error 2 diff -Naur src.orig/Makefile src/Makefile --- src.orig/Makefile 2013-12-17 10:26:04.000000000 -0500 +++ src/Makefile 2014-01-18 11:27:44.445319607 -0500 @@ -336,7 +336,7 @@ SHELL= /bin/sh -all: tzselect zic zdump libtz.a $(TABDATA) +all: tzselect zic zdump libtz.a ALL: all date @@ -368,7 +368,7 @@ zdump: $(TZDOBJS) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) -zic: $(TZCOBJS) yearistype +zic: $(TZCOBJS) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) yearistype: yearistype.sh