]> git.saurik.com Git - wxWidgets.git/blob - setup/rules/generic/needed
New way to grey out disabled toolbar icons.
[wxWidgets.git] / setup / rules / generic / needed
1 #SHELL=/bin/sh
2 MYGREP=$(WXBASEDIR)/setup/general/mygrep
3 checkneeds::
4 @if test "x$(NEEDED_DEFINES)" != x ; then \
5 RESULT=0 ; \
6 for each in $(NEEDED_DEFINES) xxx; do \
7 if test "$$each" != xxx ; then \
8 LINE=`cat $(SETUP_DIR)/wx_setup.h \
9 | sed "s/ /,/g" \
10 | $(MYGREP) ",$$each," \
11 | $(MYGREP) "#define" \
12 | $(MYGREP) "1" ` ; \
13 if test "x$$LINE" = x ; then \
14 (TMPVAR=`pwd`;\
15 TMPVAR=`dirname $$TMPVAR`;\
16 echo "$$each needed to compile "`basename $$TMPVAR`"...";\
17 );\
18 RESULT=1 ; \
19 fi; \
20 fi; \
21 done ;\
22 exit $$RESULT; \
23 fi
24