]> git.saurik.com Git - wxWidgets.git/blob - setup/general/makeapp
Fixes for compilation problems on Solaris(!).
[wxWidgets.git] / setup / general / makeapp
1 SHELL=/bin/sh
2
3 OS=$(OSTYPE)
4
5 all::
6 -@if test "x$(OS)" = x; then \
7 echo "please set the environment variable OSTYPE ";\
8 echo "to a value appropriate for your system.";\
9 echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh";\
10 echo " export OSTYPE=`uname` for other shells";\
11 else \
12 if test -f Makefile.in ; then \
13 if test -f $(OS)/Makefile ; then \
14 NEEDED=`(cd $(OS); ${MAKE} checkneeds;) | grep "needed to compile" `;\
15 if test "x$$NEEDED" = x; then \
16 (cd $(OS); ${MAKE} $@); \
17 else \
18 (cd $(OS); ${MAKE} checkneeds); \
19 fi ; \
20 else \
21 echo "Did you configure your system?";\
22 fi; \
23 fi; \
24 fi;
25
26 distrib::
27 @if test ! -d ../../distrib ; then mkdir ../../distrib; fi;
28 @if test ! -f ../../system.list ; then \
29 echo "dummy" > ../../system.list;\
30 fi
31 @(curr=`pwd`; direc=`basename $$curr`;\
32 basedir=`dirname $$curr`;\
33 basedirname=`basename $$basedir`;\
34 if test ! -d ../../distrib/$$basedirname ; then \
35 mkdir ../../distrib/$$basedirname;\
36 fi;\
37 if test -d doc; then (cd doc; make clean;); fi;\
38 (cd ..; \
39 echo creating $$direc.tar from the current directory;\
40 files="`\
41 find $$direc -type f \
42 | fgrep -vf ../system.list \
43 | grep -v "~" \
44 | grep -v "#" \
45 ` $(DISTRIBUTE_ADDITIONAL)";\
46 tar -cf /tmp/$$direc.tar $$files;\
47 echo compressing $$direc.tar to $$direc.tgz;\
48 gzip -c /tmp/$$direc.tar > ../distrib/$$basedirname/$$direc.tgz;\
49 rm /tmp/$$direc.tar;\
50 )\
51 )
52
53 .DEFAULT:
54 -@if test "x$(OS)" = x; then \
55 echo "please set the environment variable OSTYPE ";\
56 echo "to a value appropriate for your system.";\
57 echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh";\
58 echo " export OSTYPE=`uname` for other shells";\
59 else \
60 if test -f Makefile.in ; then \
61 if test -f $(OS)/Makefile ; then \
62 NEEDED=`(cd $(OS); ${MAKE} checkneeds) | grep "needed to compile" `;\
63 if test "x$$NEEDED" = x; then \
64 (cd $(OS); ${MAKE} $@); \
65 else \
66 (cd $(OS); ${MAKE} checkneeds); \
67 fi ; \
68 else \
69 echo "Did you configure your system?";\
70 fi \
71 fi \
72 fi
73