Ignore:
Timestamp:
Jul 31, 2008 3:30:08 PM (13 years ago)
Author:
gah
Message:

update makefile with mkdir_p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/Makefile.in

    r1018 r1082  
    2727LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
    2828CFLAGS          = @CFLAGS@
     29TCL_VERSION     = @TCL_VERSION@
     30TK_VERSION      = @TK_VERSION@
    2931
    3032RANLIB          = @RANLIB@
     33MKDIR_P         = @MKDIR_P@
    3134AR              = ar
    3235RM              = rm -f
     36
     37tcllib          = $$RAPPTURE_INSTALL_DIR/lib/tcl$(TCL_VERSION)
     38tklib           = $$RAPPTURE_INSTALL_DIR/lib/tk$(TK_VERSION)
    3339
    3440# The script directory is moved from src/tcl.
     
    3642.PHONY: src scripts tests
    3743
    38 all:
     44all: tcl.env
    3945        $(MAKE) -C src all
    4046        $(MAKE) -C scripts all
    4147
     48tcl.env:
     49        echo 'export TCL_LIBRARY=$(tcllib):$$TCL_LIBRARY' > tcl.env
     50        echo 'export TK_LIBRARY=$(tklib):$$TK_LIBRARY' >> tcl.env
     51
    4252install:
    43         $(INSTALL) -d $(destdir)
     53        $(MKDIR_P) $(destdir)
    4454        $(INSTALL) -m 0444 pkgIndex.tcl $(destdir)
    4555        $(MAKE) -C src install
    4656        $(MAKE) -C scripts install
     57        $(INSTALL) -m 0555 tcl.env $(bindir)
    4758
    4859test:   
Note: See TracChangeset for help on using the changeset viewer.