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:53 rswiston $
8 # @(#)SunMakefile 1.16 93/08/20
10 # The ToolTalk demo makefile
12 # Copyright (c) 1992,1993 by Sun Microsystems, Inc.
22 include $(TT_DIR)/SunMakefile-head.mk
24 # The default target, all, doesn't make anything. install copies
25 # the source to the install directory, renaming Makefile.shipped
28 # To actually make the demos using the ToolTalk in OPENWINHOME,
31 # To make the demos using the ToolTalk in $(TT_DIR)/proto, run
34 SUBDIRS = CoEd libCoEd
35 DEMO_DIR = share/src/tooltalk/demo/CoEd
36 INSTALL_DEMOS = $(DEMO_SOURCES:%=$(INSTALL_DIR)/$(DEMO_DIR)/%)
37 INSTALL_MAKEFILE = $(INSTALL_DIR)/$(DEMO_DIR)/Makefile
41 $(INSTALL_TARGETS):: $$(INSTALL_DEMOS) $$(INSTALL_MAKEFILE)
43 $(INSTALL_MAKEFILE): Makefile.shipped
44 $(TTINSTALL) $(@D) Makefile.shipped;\
46 mv $(@D)/Makefile.shipped $@
48 $(INSTALL_DEMOS): $$(@F)
49 $(TTINSTALL) $(INSTALL_DIR)/$(DEMO_DIR) $(@F)
52 MAKE="$(MAKE) -f Makefile.$@" $(MAKE) -f Makefile.$@
55 MAKE="$(MAKE) -f Makefile.shipped" $(MAKE) -f Makefile.shipped clean
58 cd CoEd; ${MAKE} -i -f Makefile.shipped clean; cd ..; \
59 cd libCoEd; ${MAKE} -i -f Makefile.shipped clean; cd ..
61 include $(TT_DIR)/SunMakefile-tail.mk