aboutsummaryrefslogtreecommitdiff
path: root/toxy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toxy/Makefile')
-rw-r--r--toxy/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/toxy/Makefile b/toxy/Makefile
index a9b675c..44e8206 100644
--- a/toxy/Makefile
+++ b/toxy/Makefile
@@ -1,6 +1,14 @@
ROOT_DIR = ..
-redefault: setup.wiq default
-setup.wiq: $(ROOT_DIR)/test/toxy/setup.wid
+WIQFILE = setup.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"' > $@
+ @if [ -f $(WIQFILE) ] && ! [ -s $(WIQFILE) ] ; then \
+ echo ERROR: quoteinitializer failed... $(WIQFILE) removed ; \
+ rm -f $(WIQFILE) ; fi
include $(ROOT_DIR)/Makefile.common