home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / sun-java / Makefile
Encoding:
Makefile  |  1998-04-08  |  1.8 KB  |  70 lines

  1. #!gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18. DEPTH        = ..
  19.  
  20. DIRS        = md-include $(AWT11DIRS) classsrc javah jtools include \
  21.           runtime md awt mmedia netscape jpegwrap zipwrap bn jdbc
  22.  
  23. #
  24. # We need to build only console for stand alone java
  25. #
  26. ifdef MOZ_JAVA
  27.  
  28. ifeq ($(STAND_ALONE_JAVA),1)
  29. DIRS        = javah $(AWT11DIRS) classsrc include md-include md \
  30.           runtime awt mmedia jpegwrap zipwrap bn jdbc netscape/console
  31. endif
  32. ifeq ($(AWT_11),1)
  33. AWT11DIRS    = classsrc11
  34. endif
  35.  
  36. else  # MOZ_JAVA
  37. DIRS = stubs
  38. endif # MOZ_JAVA
  39.  
  40. include $(DEPTH)/config/rules.mk
  41.  
  42. OTHER_DIRS    = javac javadoc doc javap
  43.  
  44. LOOP_OVER_OTHER_DIRS =                        \
  45.     @for d in $(OTHER_DIRS); do                \
  46.         if test -d $$d; then                \
  47.             set -e;                    \
  48.             echo "cd $$d; $(MAKE) $@";        \
  49.             cd $$d; $(MAKE) $@; cd ..;        \
  50.             set +e;                    \
  51.         else                        \
  52.             echo "Skipping non-directory $$d...";    \
  53.         fi;                        \
  54.     done
  55.  
  56. .PHONY: $(OTHER_DIRS)
  57.  
  58. $(OTHER_DIRS)::
  59.     @if test -d $@; then                \
  60.         set -e;                    \
  61.         echo "cd $@; $(MAKE)";            \
  62.         cd $@; $(MAKE);                \
  63.         set +e;                    \
  64.     else                        \
  65.         echo "Skipping non-directory $@...";    \
  66.     fi
  67.  
  68. other_dirs::
  69.     +$(LOOP_OVER_OTHER_DIRS)
  70.