]> git.donarmstrong.com Git - lib.git/commitdiff
fix strfile locator shell bits
authorDon Armstrong <don@donarmstrong.com>
Tue, 21 Jan 2014 00:46:18 +0000 (16:46 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 21 Jan 2014 00:46:18 +0000 (16:46 -0800)
signature_stuff/Makefile

index 6fb65beb98cba2978ec3da5673a9a5a2df823f75..1c1676f401bdd885b0066fb9ac42edaf66f64d4a 100644 (file)
@@ -1,7 +1,7 @@
 
 all: $(patsubst %.txt,%.txt.dat,$(wildcard *.txt))
 
-STRFILE=$(shell which strfile || echo touch -r)
+STRFILE=$(shell if which strfile >/dev/null 2>&1; then which strfile; else echo touch -r; fi)
 
 %.txt.dat: %.txt
        $(STRFILE) $< $@