summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-05 18:17:38 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-05 18:17:38 -0800
commit7de541afba40076a0065285f3e392f507ee2bdc3 (patch)
tree0b93b9262632addc8d7078f7ad6ea75fb048374c /Makefile
parent79b44cd7557f7386ed44f2b6182eadbe5037dbc1 (diff)
downloadtxr-7de541afba40076a0065285f3e392f507ee2bdc3.tar.gz
txr-7de541afba40076a0065285f3e392f507ee2bdc3.tar.bz2
txr-7de541afba40076a0065285f3e392f507ee2bdc3.zip
* 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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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 := :