From c7389b6452e3d44d8f8fb9699f06c1b2db1c51ba Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 10 Mar 2004 10:55:57 +0000 Subject: toxy alpha7 svn path=/trunk/externals/miXed/; revision=1402 --- toxy/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'toxy/Makefile') 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 -- cgit v1.2.1