home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / cdmt / Makefile < prev   
Encoding:
Makefile  |  1995-06-30  |  2.7 KB  |  88 lines

  1. # hess@sco.com
  2. # Makefile to build a custom+ SSO for skunkware
  3.  
  4. HERE=`pwd`
  5. CDCFG=-config cdmt.cd.config
  6. CFG=$(CDCFG)
  7.  
  8. all:: ssoCD
  9.  
  10. # If we are exporting to the system from this SSO, then this 
  11. # rule will wipe out the existing (installed) SSO, making it uninstalled
  12. # and perhaps leaving custom databases in an awkward state.
  13. ssoCD : input/default.prd cdmt.cd.config Makefile
  14.     rm -rf $@    
  15.     CDMT_DIR=$(HERE) cdmtParse  $(CDCFG)
  16.     CDMT_DIR=$(HERE) cdmtCompress  $(CDCFG)
  17.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  18.  
  19. install ::
  20.     @echo To install the skunk SSO on this machine run 
  21.     @echo as root 
  22.     @echo make export enable 
  23.  
  24. # export the ssoCD to my machine
  25. # must be root to do this
  26. enable:
  27.     custom -p SKUNK:default -e
  28. disable:
  29.     custom -p SKUNK:default -d
  30.  
  31. # do a quick install on my own machine
  32. # start by disabling the skunk on my machine 
  33. # only works if the perms in the ssoCD dir allow those binaries to be
  34. # executed and read ...  to get this right run "make fixall"
  35. export:  
  36.     find ./ssoCD -name "ccs" -exec chmod +x {} \;  
  37.     -custom -p SKUNK:default -d
  38.     rm -rf /opt/?/SKUNK /var/opt/K/SKUNK
  39.     -mkdir -p /opt/P/SKUNK/default /opt/K/SKUNK /var/opt/K/SKUNK
  40.     ( cd ./ssoCD ; for i in opt/P/SKUNK/default/5.0; do \
  41.         ln -s $(HERE)/$$i /$$i ; \
  42.     done )
  43.     ( cd ./ssoCD ; for i in opt/K/SKUNK/*; do \
  44.         mkdir -p /$$i ; \
  45.     done )
  46.     ( cd ./ssoCD ; for i in opt/K/SKUNK/*/*; do \
  47.         ln -s $(HERE)/$$i /$$i ; \
  48.     done )
  49.  
  50. # just a quick fix, for stuff we know we need to tweak ...
  51. fixup_perms fp quickfix: 
  52.     find ./ssoCD -name "ccs" -exec chmod +x {} \;  
  53.     chmod +x ./ssoCD/opt/K/SKUNK/xmcd/1.4/libdi.d/configure.sh 
  54.  
  55. # this is not quick at all ...
  56. # and you must be root, should be done after a "make export" 
  57. # and before make enable
  58. fixall fix_all fixperms fixperm: 
  59.     custom -p SKUNK:default -v quick -x >/dev/null
  60.  
  61. parse.prd parse prd :
  62.     cdmtParse -prd input/default.prd  $(CFG) 
  63.  
  64. # rules to update individual components, used during development...
  65. GROFF=../Tools/groff-1.09
  66. groff:
  67.     CDMT_DIR=$(HERE) cdmtParse $(CFG) -cmpnt $(GROFF)/$@.cmpnt 
  68.     CDMT_DIR=$(HERE) cdmtCompress $(CFG) -cmpnt $(GROFF)/$@.cmpnt 
  69.  
  70. ACM=../Games/acm-4.7
  71. acm:
  72.     CDMT_DIR=$(HERE) cdmtParse $(CFG) -cmpnt $(ACM)/$@.cmpnt 
  73.     CDMT_DIR=$(HERE) cdmtCompress $(CFG) -cmpnt $(ACM)/$@.cmpnt 
  74.  
  75. #gcc gdb tools groff perl fresco::
  76. #    CDMT_DIR=$(HERE) cdmtParse $(CFG) -cmpnt input/$@.cmpnt 
  77. #    CDMT_DIR=$(HERE) cdmtCompress $(CFG) -cmpnt input/$@.cmpnt 
  78. #Emacs Ispell: 
  79. #    CDMT_DIR=$(HERE) cdmtParse  $(CFG)  -cmpnt $(GNU)/input/$@.cmpnt
  80. #    CDMT_DIR=$(HERE) cdmtCompress  $(CFG)  -cmpnt $(GNU)/input/$@.cmpnt
  81. #xmcd : 
  82. #    CDMT_DIR=$(HERE) cdmtParse  $(CFG)  -cmpnt $(XMCD)/input/$@.cmpnt
  83. #    CDMT_DIR=$(HERE) cdmtCompress  $(CFG)  -cmpnt $(XMCD)/input/$@.cmpnt
  84. #
  85. arch : 
  86.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  87.