Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / tt / demo / SunMakefile
1 # %%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  
2 # %%  (c) Copyright 1993, 1994 International Business Machines Corp.    
3 # %%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   
4 # %%  (c) Copyright 1993, 1994 Novell, Inc.                             
5 # %%  $XConsortium: SunMakefile /main/3 1995/10/20 17:03:17 rswiston $                                                  
6 #
7 #
8 # @(#)SunMakefile       1.15 26 Oct 1993
9 #
10 # The ToolTalk demo makefile
11 #
12 # Copyright (c) 1992 by Sun Microsystems, Inc.
13 #
14
15 TT_DIR = ..
16 THIS_DIR = demo
17
18 include $(TT_DIR)/SunMakefile-head.mk
19
20 # The default target, all, doesn't make anything.  install copies
21 # the source to the install directory, renaming Makefile.shipped
22 # to Makefile.
23
24 # To actually make the demos using the ToolTalk in OPENWINHOME,
25 # make shipped
26
27 # To make the demos using the ToolTalk in $(TT_DIR)/proto, run
28 # make test
29
30 SUBDIRS =
31 # We only need to descend into the subdirectories when installing or doing
32 # "make shipped" or "make test".
33 install-% shipped test  :=      SUBDIRS = CoEd
34
35 DEMO_DIR = share/src/tooltalk/demo
36
37 INSTALL_MAKEFILE = $(INSTALL_DIR)/$(DEMO_DIR)/Makefile
38
39 all::
40  
41 $(INSTALL_TARGETS)::     $$(INSTALL_MAKEFILE)
42  
43 $(INSTALL_MAKEFILE): Makefile.shipped
44         $(TTINSTALL) $(@D) Makefile.shipped;\
45         rm -f $@;\
46         mv $(@D)/Makefile.shipped $@
47
48 shipped test:
49         if [ ! -w CoEd/CoEd_main/CoEd_stubs.c ]; then \
50                 echo golit needs CoEd/CoEd_main/CoEd_stubs.c to be writable.; \
51                 echo Check it out, build, and then uncheck it out.; \
52                 exit 1; \
53         fi
54         MAKE="$(MAKE) -f Makefile.$@" $(MAKE) -f Makefile.$@
55
56 shippedclean:
57         MAKE="$(MAKE) -f Makefile.shipped" $(MAKE) -f Makefile.shipped clean
58
59 include $(TT_DIR)/SunMakefile-tail.mk
60
61 FRC:
62