diff options
Diffstat (limited to 'ds9/make.include')
-rw-r--r-- | ds9/make.include | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/ds9/make.include b/ds9/make.include index 87b12d0..76aa699 100644 --- a/ds9/make.include +++ b/ds9/make.include @@ -1,56 +1,66 @@ #--------------------------framework -framework: +framework: $(LIBDIR)/library $(LIBDIR)/doc $(LIBDIR)/cmaps $(LIBDIR)/template + +$(LIBDIR)/library : cp -prf $(prefix)/ds9/library $(LIBDIR)/. +# must do it this way for win + cd $@; \ + echo "pkg_mkIndex . *.tcl; exit" | $(TCLSH_PROG) + +$(LIBDIR)/msgs : cp -prf $(prefix)/ds9/msgs $(LIBDIR)/. + +$(LIBDIR)/doc : cp -prf $(prefix)/ds9/doc $(LIBDIR)/. + +$(LIBDIR)/cmaps : cp -prf $(prefix)/ds9/cmaps $(LIBDIR)/. + +$(LIBDIR)/template : cp -prf $(prefix)/ds9/template $(LIBDIR)/. -# must do it this way for win - cd $(LIBDIR)/library; \ - echo "pkg_mkIndex . *.tcl; exit" | $(TCLSH_PROG) #--------------------------tkblt -tkblt : - mkdir -p $(LIBDIR)/tkblt - cp -pf $(prefix)/tkblt/library/*.tcl $(LIBDIR)/tkblt/. +$(LIBDIR)/tkblt : + mkdir -p $@ + cp -pf $(prefix)/tkblt/library/*.tcl $@/. # must do it this way for win - cd $(LIBDIR)/tkblt; \ + cd $@; \ echo "pkg_mkIndex . *.tcl; exit" | $(TCLSH_PROG) #--------------------------tkcon -tkcon : - mkdir -p $(LIBDIR)/tkcon - cp -pf $(prefix)/tkcon/*.tcl $(LIBDIR)/tkcon/. +$(LIBDIR)/tkcon : + mkdir -p $@ + cp -pf $(prefix)/tkcon/*.tcl $@/. # must do it this way for win - cd $(LIBDIR)/tkcon; \ + cd $@; \ echo "pkg_mkIndex . *.tcl; exit" | $(TCLSH_PROG) #--------------------------tcllib -tcllib : base64 ftp log textutil math +tcllib : $(LIBDIR)/base64 $(LIBDIR)/ftp $(LIBDIR)/log $(LIBDIR)/textutil $(LIBDIR)/math -base64 : - mkdir -p $(LIBDIR)/base64 - cp -prf $(prefix)/tcllib/modules/base64/*.tcl $(LIBDIR)/base64/. +$(LIBDIR)/base64: + mkdir -p $@ + cp -prf $(prefix)/tcllib/modules/base64/*.tcl $@ -ftp : - mkdir -p $(LIBDIR)/ftp - cp -prf $(prefix)/tcllib/modules/ftp/*.tcl $(LIBDIR)/ftp/. +$(LIBDIR)/ftp : + mkdir -p $@ + cp -prf $(prefix)/tcllib/modules/ftp/*.tcl $@ -log : - mkdir -p $(LIBDIR)/log - cp -prf $(prefix)/tcllib/modules/log/*.tcl $(LIBDIR)/log/. +$(LIBDIR)/log : + mkdir -p $@ + cp -prf $(prefix)/tcllib/modules/log/*.tcl $@ -textutil: - mkdir -p $(LIBDIR)/textutil - cp -prf $(prefix)/tcllib/modules/textutil/*.tcl $(LIBDIR)/textutil/. +$(LIBDIR)/textutil: + mkdir -p $@ + cp -prf $(prefix)/tcllib/modules/textutil/*.tcl $@ -math : - mkdir -p $(LIBDIR)/math - cp -prf $(prefix)/tcllib/modules/math/*.tcl $(LIBDIR)/math/. +$(LIBDIR)/math : + mkdir -p $@ + cp -prf $(prefix)/tcllib/modules/math/*.tcl $@/. #--------------------------distclean |