home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / conf / Makefile < prev    next >
Encoding:
Makefile  |  1992-07-09  |  2.2 KB  |  76 lines

  1. #
  2. # Mach Operating System
  3. # Copyright (c) 1992,1991,1990,1989 Carnegie Mellon University
  4. # All Rights Reserved.
  5. # Permission to use, copy, modify and distribute this software and its
  6. # documentation is hereby granted, provided that both the copyright
  7. # notice and this permission notice appear in all copies of the
  8. # software, derivative works or modified versions, and any portions
  9. # thereof, and that both notices appear in supporting documentation.
  10. # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  11. # CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  12. # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  13. # Carnegie Mellon requests users of this software to return to
  14. #  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  15. #  School of Computer Science
  16. #  Carnegie Mellon University
  17. #  Pittsburgh PA 15213-3890
  18. # any improvements or extensions that they make and grant Carnegie Mellon
  19. # the rights to redistribute these changes.
  20. #
  21. #
  22. # HISTORY
  23. # $Log:    Makefile,v $
  24. # Revision 2.2  92/06/25  17:27:22  mrt
  25. #     New for ODE make.
  26. #     [92/06/16            mrt]
  27. #     $EndLog$
  28.  
  29. MASTER        = MASTER
  30. MASTER_TM    = ${target_machine}/MASTER
  31. MASTER_LOCAL    = MASTER.local
  32. MASTER_TM_LOCAL    = ${target_machine}/MASTER.local
  33.  
  34. CONFIG        ?=${BSDSS_${TARGET_MACHINE}_CONFIG:U${BSDSS_CONFIG:UDEFAULT}}
  35.  
  36. OTHERS        = ../${CONFIG}/Makefile
  37.  
  38. .include <${RULES_MK}>
  39.  
  40. ${CONFIG}:    ${MASTER} ${MASTER_TM} \
  41.         ${MASTER_LOCAL} ${MASTER_TM_LOCAL} \
  42.         mkconfig.csh
  43.     @echo "[ generating $@ from {,${target_machine}/}MASTER{,.local} ]"
  44.     csh -f ${mkconfig.csh:P} ${CONFIG}\
  45.         ${${MASTER}:P}\
  46.         ${${MASTER_TM}:P}\
  47.         ${${MASTER_LOCAL}:P}\
  48.         ${${MASTER_TM_LOCAL}:P} >${CONFIG}.tmp
  49.     @-if [ -s ${CONFIG}.tmp ]; then \
  50.         if [ -f ${CONFIG} ]; then \
  51.         diff ${CONFIG} ${CONFIG}.tmp; \
  52.         mv ${CONFIG} ${CONFIG}.old; \
  53.         fi; \
  54.         mv ${CONFIG}.tmp ${CONFIG}; \
  55.     else \
  56.         rm -f ${CONFIG}.tmp; \
  57.     fi
  58.  
  59. ../${CONFIG}/Makefile:    ${CONFIG} \
  60.             files \
  61.             ${target_machine}/files \
  62.             template.mk \
  63.             ${target_machine}/template.mk \
  64.             ../src/config/config 
  65.     @echo "[ configuring ${CONFIG} ]"
  66.     @-if [ -d ../${CONFIG} ]; then true; else mkdir ../${CONFIG}; fi
  67.     ../src/config/config `genpath -I.` -c . ${CONFIG_FLAGS} ${CONFIG}
  68.     @echo ${CONFIG} >../${CONFIG}/vers.config
  69.