aboutsummaryrefslogtreecommitdiff
path: root/toxy/Makefile
diff options
context:
space:
mode:
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