From 88b4da18ab484ea55f4a58174bf0ccebe0088f24 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Tue, 16 Mar 2004 12:13:54 +0000 Subject: toxy alpha8 svn path=/trunk/externals/miXed/; revision=1425 --- toxy/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'toxy/Makefile') 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 -- cgit v1.2.1