SunMakefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. TT_DIR = ..
  15. THIS_DIR = demo
  16. include $(TT_DIR)/SunMakefile-head.mk
  17. # The default target, all, doesn't make anything. install copies
  18. # the source to the install directory, renaming Makefile.shipped
  19. # to Makefile.
  20. # To actually make the demos using the ToolTalk in OPENWINHOME,
  21. # make shipped
  22. # To make the demos using the ToolTalk in $(TT_DIR)/proto, run
  23. # make test
  24. SUBDIRS =
  25. # We only need to descend into the subdirectories when installing or doing
  26. # "make shipped" or "make test".
  27. install-% shipped test := SUBDIRS = CoEd
  28. DEMO_DIR = share/src/tooltalk/demo
  29. INSTALL_MAKEFILE = $(INSTALL_DIR)/$(DEMO_DIR)/Makefile
  30. all::
  31. $(INSTALL_TARGETS):: $$(INSTALL_MAKEFILE)
  32. $(INSTALL_MAKEFILE): Makefile.shipped
  33. $(TTINSTALL) $(@D) Makefile.shipped;\
  34. rm -f $@;\
  35. mv $(@D)/Makefile.shipped $@
  36. shipped test:
  37. if [ ! -w CoEd/CoEd_main/CoEd_stubs.c ]; then \
  38. echo golit needs CoEd/CoEd_main/CoEd_stubs.c to be writable.; \
  39. echo Check it out, build, and then uncheck it out.; \
  40. exit 1; \
  41. fi
  42. MAKE="$(MAKE) -f Makefile.$@" $(MAKE) -f Makefile.$@
  43. shippedclean:
  44. MAKE="$(MAKE) -f Makefile.shipped" $(MAKE) -f Makefile.shipped clean
  45. include $(TT_DIR)/SunMakefile-tail.mk
  46. FRC: