source: trunk/third/wcl/MakeByHand @ 8837

Revision 8837, 4.3 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8836, which included commits to RCS files with non-trunk default branches.
Line 
1###########################################################################
2# Hand-built makefile for systems without Imake.  You probably do not
3# need to edit this file.
4#
5# Author:       David E. Smyth
6# SccsID:       %Z% %M% %I% %E% %U%
7###########################################################################
8#
9# To build:
10#       1.      Choose the WcMake1.* and WcMake2.* files which most
11#               closely match your system (sun, svr4, svr4 with only
12#               static libraries, HP, etc).  The default WcMake?.tmpl
13#               files are the WcMake?.sun files.  For example, on an HP,
14#                       rm WcMake1.tmpl WcMake2.tmpl
15#                       ln -s WcMake1.hp WcMake1.tmpl
16#                       ln -s WcMake2.hp WcMake2.tmpl
17#       2.      Edit these two files if necessary.
18#       3.      % make -f MakeByHand World
19#
20# To test distribution with Motif:
21#               % setenv PATH ./Mri:$PATH
22#                       -or-
23#               % PATH=./Mri:$PATH export PATH
24#       
25#               % Mri -rf Mri/Demo
26#
27# To test distribution with OpenLook:
28#               % setenv PATH ./Ori:$PATH
29#               % Ori -rf Ori/Demo
30#
31# To test distribution with Athena:
32#               % setenv PATH ./Ari:$PATH
33#                       -or-
34#               % PATH=./Ari:$PATH ; export PATH
35#
36#               % Ari -rf Ari/Demo
37#
38# If everything is OK, then install:
39#               % make -f MakeByHand install
40#
41
42include WcMake1.tmpl
43include WcMake2.tmpl
44
45  TARFILE  = Wcl-$(WCL_VER).tar
46  TARFILEX = Wclx-$(WCL_VER).tar
47
48  SUBDIRS = Wc $(WcATHENA) $(WcCORNELL) $(WcMOTIF) $(WcOPEN_LOOK) $(WcSTUFF)
49
50# "make all" builds the library and the applications without
51# installing anything.  However, "includes" must first be done!
52
53all:
54        for i in $(SUBDIRS) ;\
55        do \
56        (cd $$i ; echo "making" "in ./$$i..."; \
57        $(MAKE) all); \
58        done
59
60# Note that the Xp includes must be always be done so Xop and Xcp
61# can build XpTable
62#
63includes:: ./X11 $(LOCAL_STRINGS_H)
64        for i in $(SUBDIRS) Xp ;\
65        do \
66        (cd $$i ; echo "including" "in ./$$i..."; \
67        $(MAKE) includes); \
68        done
69
70./X11:
71        mkdir ./X11
72
73./strings.h:
74        $(GET_LOCAL_STRINGS_H)
75
76# Note we must install the Xp/Table include files always
77#
78$(DESTDIR)$(INCDIR)/Xp:
79        mkdir $(DESTDIR)$(INCDIR)/Xp
80        chown $(OWNER) $(DESTDIR)$(INCDIR)/Xp
81        chmod $(INSTDIRFLAGS) $(DESTDIR)$(INCDIR)/Xp
82
83install:
84        for i in $(SUBDIRS) ;\
85        do \
86        (cd $$i ; echo "installing" "in ./$$i..."; \
87        $(MAKE) install); \
88        done
89        echo "installing Xp include files..."
90        $(MAKE) $(DESTDIR)$(INCDIR)/Xp
91        for i in Xp/COPY.h Xp/Table.h Xp/TableP.h ; do \
92        rm -f $(DESTDIR)$(INCDIR)/$$i; \
93        cp $$i $(DESTDIR)$(INCDIR)/$$i; \
94        done
95        chown $(OWNER) $(DESTDIR)$(INCDIR)/Xp/*
96        chmod $(INSTINCFLAGS) $(DESTDIR)$(INCDIR)/Xp/*
97
98install.man:
99        for i in $(SUBDIRS) ;\
100        do \
101        (cd $$i ; echo "installing man pages" "in ./$$i..."; \
102        $(MAKE) install.man); \
103        done
104
105clean:
106        for i in $(SUBDIRS) ;\
107        do \
108        (cd $$i ; echo "cleaning" "in ./$$i..."; \
109        $(MAKE) clean); \
110        done
111
112World:
113        @echo ""
114        @echo Building Release $(WCL_VER) of Wcl - the Widget Creation Library
115        @echo ""
116        @echo "##########################################################"
117        @echo "# I trust you first edited WcMake1.tmpl and WcMake2.tmpl #"
118        @echo "##########################################################"
119        @echo ""
120        @date
121        @echo ""
122        $(MAKE) clean
123        $(MAKE) includes
124        $(MAKE) all
125       
126
127# Done only before final distribution
128
129DISTDIRS = Ari Mri Ori Stuff Wc Xmp Xop Xp
130
131distribution:
132        $(MAKE) clean
133        $(MAKE) sccsdelget
134        $(MAKE) scoman
135        $(MAKE) files
136
137sccsdelget:
138        echo "sccs delget ..."
139        sccs delget -y"for $(WCL_VER) distribution" `sccs tell`
140        for i in $(DISTDIRS) ;\
141        do \
142        (cd $$i ; echo "sccs delget in ./$$i..."; \
143        sccs delget -y"for $(WCL_VER) distribution" `sccs tell` ); \
144        done
145
146scoman:
147        for i in $(DISTDIRS) ;\
148        do \
149        (cd $$i ; echo "making sco man pages in ./$$i..."; \
150        $(MAKE) scoman); \
151        done
152
153FORCE:
154
155files: FORCE
156        touch files
157        find . -name SCCS -prune -o -type f -print | sort > files
158
159# To make it easy to pass Wcl on to others
160
161tar:
162        rm -f $(TARFILE)
163        tar cf $(TARFILE) -I files
164        ls -l $(TARFILE)*
165
166tar.Z:
167        $(MAKE) tar
168        rm -f $(TARFILE).Z
169        compress $(TARFILE)
170        ls -l $(TARFILE)*
171
172tar.gz:
173        $(MAKE) tar
174        rm -f $(TARFILE).gz
175        gzip $(TARFILE)
176        ls -l $(TARFILE)*
177
178xtar:
179        rm -f $(TARFILEX)*
180        tar cf $(TARFILEX) -I files.WP
181        ls -l $(TARFILEX)*
182
183xtar.Z:
184        $(MAKE) xtar
185        compress $(TARFILEX)
186        ls -l $(TARFILEX)*
187
188       
189tar.Z.u:
190        $(MAKE) tar.Z
191        uuencode $(TARFILE).Z $(TARFILE).Z >$(TARFILE).Z.u
192        ls -l $(TARFILE)*
193
194tar.Z.u.split:
195        $(MAKE) tar.Z.u
196        split -790 $(TARFILE).Z.u $(TARFILE)Zu.
197        ls -l $(TARFILE)*
Note: See TracBrowser for help on using the repository browser.