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 $
8 # @(#)SunMakefile 1.15 26 Oct 1993
10 # The ToolTalk demo makefile
12 # Copyright (c) 1992 by Sun Microsystems, Inc.
18 include $(TT_DIR)/SunMakefile-head.mk
20 # The default target, all, doesn't make anything. install copies
21 # the source to the install directory, renaming Makefile.shipped
24 # To actually make the demos using the ToolTalk in OPENWINHOME,
27 # To make the demos using the ToolTalk in $(TT_DIR)/proto, run
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
35 DEMO_DIR = share/src/tooltalk/demo
37 INSTALL_MAKEFILE = $(INSTALL_DIR)/$(DEMO_DIR)/Makefile
41 $(INSTALL_TARGETS):: $$(INSTALL_MAKEFILE)
43 $(INSTALL_MAKEFILE): Makefile.shipped
44 $(TTINSTALL) $(@D) Makefile.shipped;\
46 mv $(@D)/Makefile.shipped $@
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.; \
54 MAKE="$(MAKE) -f Makefile.$@" $(MAKE) -f Makefile.$@
57 MAKE="$(MAKE) -f Makefile.shipped" $(MAKE) -f Makefile.shipped clean
59 include $(TT_DIR)/SunMakefile-tail.mk