aboutsummaryrefslogtreecommitdiff
path: root/toxy
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-02 19:04:50 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-02 19:04:50 +0000
commit90485b96be50e6ee811f3ba3c16e2369a2e8b6cd (patch)
treeeff793926759bbb965ace2c1f7f4c26914bcbfc4 /toxy
parent19bf51d806348ed406d15c594a4c0821fe82593f (diff)
ok, I think I finally nailed this stupid sh vs. echo -e bug
svn path=/trunk/externals/miXed/; revision=7535
Diffstat (limited to 'toxy')
-rw-r--r--toxy/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/toxy/Makefile b/toxy/Makefile
index 5527532..1c06f5b 100644
--- a/toxy/Makefile
+++ b/toxy/Makefile
@@ -1,6 +1,12 @@
ROOT_DIR = ..
WIDPATH = $(ROOT_DIR)/test/toxy/setup.wid
WIQFILE = $(notdir $(WIDPATH:.wid=.wiq))
+# this is necessary to deal with cross-platform echo issues with '-e'
+ifeq ($(shell echo -e|sed 's|^-||'),e)
+ ECHO = /bin/echo
+else
+ ECHO = echo
+endif
redefault: checkwiq $(WIQFILE) default
checkwiq:
@if [ -f $(WIQFILE) ] && ! [ -s $(WIQFILE) ] ; then \
@@ -9,7 +15,7 @@ checkwiq:
$(WIQFILE): $(WIDPATH)
@echo transferring widget definitions from \"$<\" to \"$@\"
# LATER think how to replace puts with pdtk_post
- @echo '// Do not edit this file (edit "$<", and run "make").\n//\nputs stderr [concat loading built-in widget definitions]' \
+ $(ECHO) -e '// Do not edit this file (edit "$<", and run "make").\n//\nputs stderr [concat loading built-in widget definitions]' \
| cat - $< | sed \
-e '1,\|//$$|{p;d;}' \
-e 's/\([\\\"]\)/\\\1/g' \