aboutsummaryrefslogtreecommitdiff
path: root/toxy/Makefile
blob: 44e82065102340d3d724ee295ed84f75d6468a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ROOT_DIR = ..
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