From 7de541afba40076a0065285f3e392f507ee2bdc3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 5 Dec 2014 18:17:38 -0800 Subject: * Makefile (INSTALL): Bugfix: touch -r $(2) does not work right when $(2) is a wildcard like path/to/*.txr. It touches files in the source tree to the timestamp of the argument after -r. Putting in a shell loop to handle this. --- ChangeLog | 7 +++++++ Makefile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a26d6f69..493645d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-12-05 Kaz Kylheku + + * Makefile (INSTALL): Bugfix: touch -r $(2) does not work + right when $(2) is a wildcard like path/to/*.txr. It touches files in + the source tree to the timestamp of the argument after -r. Putting in + a shell loop to handle this. + 2014-12-05 Kaz Kylheku * Makefile (TESTS_TMP): New variable. diff --git a/Makefile b/Makefile index 877e7307..12702c18 100644 --- a/Makefile +++ b/Makefile @@ -213,14 +213,14 @@ enforce: # Installation macro. # # $1 - chmod perms -# $2 - source file +# $2 - source file(s) # $3 - dest directory # define INSTALL mkdir -p $(3) cp -f $(2) $(3) chmod $(1) $(3)/$(notdir $(2)) - touch -r $(2) $(3)/$(notdir $(2)) + for x in $(2) ; do touch -r $$x $(3)/$$(basename $$x) ; done endef PREINSTALL := : -- cgit v1.2.3