aboutsummaryrefslogtreecommitdiff
path: root/toxy/Makefile
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-03-16 12:13:54 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-03-16 12:13:54 +0000
commit88b4da18ab484ea55f4a58174bf0ccebe0088f24 (patch)
treed11d880101338a255fabd9754cc88d5a67d63656 /toxy/Makefile
parent8371b58732b1368c59966e68f9eb16b5d9210921 (diff)
toxy alpha8
svn path=/trunk/externals/miXed/; revision=1425
Diffstat (limited to 'toxy/Makefile')
-rw-r--r--toxy/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/toxy/Makefile b/toxy/Makefile
index 44e8206..4ae80d2 100644
--- a/toxy/Makefile
+++ b/toxy/Makefile
@@ -1,13 +1,19 @@
ROOT_DIR = ..
-WIQFILE = setup.wiq
+WIDPATH = $(ROOT_DIR)/test/toxy/setup.wid
+WIQFILE = $(notdir $(WIDPATH:.wid=.wiq))
redefault: checkwiq $(WIQFILE) default
checkwiq:
@if [ -f $(WIQFILE) ] && ! [ -s $(WIQFILE) ] ; then \
echo ERROR: empty file $(WIQFILE)... removed ; \
rm -f $(WIQFILE) ; fi
-$(WIQFILE): $(ROOT_DIR)/test/toxy/$(WIQFILE:.wiq=.wid)
- $(ROOT_DIR)/quoteinitializer $< \
- '"puts stderr [concat loading built-in widget definitions]\n"' > $@
+$(WIQFILE): $(WIDPATH)
+ @echo transferring widget definitions from \"$<\" to \"$@\"
+ @cat $< | sed \
+-e '1i// Do not edit this file (edit \"$<\", and run \"make\").' \
+-e '1i//' \
+-e '1i\"puts stderr [concat loading built-in widget definitions]\\n\"' \
+-e 's/\([\\\"]\)/\\\1/g' \
+-e 's/^.*$$/\"&\\n\"/' > $@
@if [ -f $(WIQFILE) ] && ! [ -s $(WIQFILE) ] ; then \
echo ERROR: quoteinitializer failed... $(WIQFILE) removed ; \
rm -f $(WIQFILE) ; fi