SunMakefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/23 09:45:17 rswiston $
  6. # @(#)SunMakefile 1.8 93/08/23
  7. # The ToolTalk demo makefile
  8. #
  9. # Copyright (c) 1992 by Sun Microsystems, Inc.
  10. #
  11. TT_DIR = ../../..
  12. THIS_DIR = libCoEd
  13. include $(TT_DIR)/SunMakefile-head.mk
  14. DEMO_SOURCES = \
  15. CoEd.C \
  16. CoEdFile.C \
  17. CoEdSiteID.C \
  18. CoEdTextChange.C \
  19. CoEdTextVersion.C \
  20. CoEdChangeHistory.C \
  21. CoEdChangeQueue.C \
  22. SiteChange.C \
  23. CoEd.h \
  24. CoEdChangeHistory.h \
  25. CoEdChangeQueue.h \
  26. CoEdFile.h \
  27. CoEdGlobals.h \
  28. CoEdSiteID.h \
  29. CoEdTextChange.h \
  30. CoEdTextVersion.h \
  31. SiteChange.h
  32. # The default target, all, doesn't make anything. install copies
  33. # the source to the install directory, renaming Makefile.shipped
  34. # to Makefile.
  35. # To actually make the demos using the ToolTalk in OPENWINHOME,
  36. # run "make -f Makefile.shipped"
  37. # To make the demos using the ToolTalk in $(TT_DIR)/proto, run
  38. # "make -f Makefile.test".
  39. all::
  40. DEMO_DIR = share/src/tooltalk/demo/CoEd/libCoEd
  41. INSTALL_DEMOS = $(DEMO_SOURCES:%=$(INSTALL_DIR)/$(DEMO_DIR)/%)
  42. INSTALL_MAKEFILE = $(INSTALL_DIR)/$(DEMO_DIR)/Makefile
  43. $(INSTALL_TARGETS):: $$(INSTALL_DEMOS) $$(INSTALL_MAKEFILE)
  44. $(INSTALL_DEMOS): $$(@F)
  45. $(TTINSTALL) $(INSTALL_DIR)/$(DEMO_DIR) $(@F)
  46. $(INSTALL_MAKEFILE): Makefile.shipped
  47. $(TTINSTALL) $(@D) Makefile.shipped;\
  48. rm -f $@;\
  49. mv $(@D)/Makefile.shipped $@
  50. include $(TT_DIR)/SunMakefile-tail.mk