From 8cfd46905827e91dbf42bde406a3fc5514573646 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 06 Jun 2019 12:28:25 -0400 Subject: build: Make $(INSTALL) less pointlessly verbose Also add a couple comments. --- (limited to 'build') diff --git a/build b/build index cc4f150..a9c009b 100755 --- a/build +++ b/build @@ -12,6 +12,7 @@ TABLES = \ INSTALL = set -e; \ INSTALL() { \ + printf ' INSTALL %s\n' "$${*}"; \ i=0; for d in "$${@}"; do : $$((i += 1)); done; \ mkdir -p "$${d}"; \ for s in "$${@}"; do [ $$((i -= 1)) -eq 0 ] && break; \ @@ -27,16 +28,18 @@ build: touch $@ install: build - $(INSTALL) src/tzselect tzselect.data/usr/bin - $(INSTALL) src/zdump zdump.data/usr/bin - $(INSTALL) src/zic zic.data/usr/sbin - $(INSTALL) src/tzfile.5 tzcode-doc.data/usr/share/man/man5 - $(INSTALL) src/tzselect.8 tzcode-doc.data/usr/share/man/man8 - $(INSTALL) src/zdump.8 tzcode-doc.data/usr/share/man/man8 - $(INSTALL) src/zic.8 tzcode-doc.data/usr/share/man/man8 + # Install utilities. + @$(INSTALL) src/tzselect tzselect.data/usr/bin + @$(INSTALL) src/zdump zdump.data/usr/bin + @$(INSTALL) src/zic zic.data/usr/sbin + # Install documentation. + @$(INSTALL) src/tzfile.5 tzcode-doc.data/usr/share/man/man5 + @$(INSTALL) src/tzselect.8 tzcode-doc.data/usr/share/man/man8 + @$(INSTALL) src/zdump.8 tzcode-doc.data/usr/share/man/man8 + @$(INSTALL) src/zic.8 tzcode-doc.data/usr/share/man/man8 # Install country and zone tables used by tzselect. - $(INSTALL) src/iso3166.tab tzselect.data/usr/share/zoneinfo - $(INSTALL) src/zone1970.tab tzselect.data/usr/share/zoneinfo + @$(INSTALL) src/iso3166.tab tzselect.data/usr/share/zoneinfo + @$(INSTALL) src/zone1970.tab tzselect.data/usr/share/zoneinfo # Install the Factory zone and make it the default localtime. src/zic -d tzdata.data/usr/share/zoneinfo src/factory mkdir -p tzdata.data/etc -- cgit v0.9.1