From: Stephen D. <sd...@us...> - 2005-05-14 10:22:43
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29954/include Modified Files: Makefile.module.in Log Message: Add new MODNAME and TCL Makefile variables which modules can use to specify a list of shared tcl files to install. Index: Makefile.module.in =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/Makefile.module.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.module.in 27 Apr 2005 05:30:41 -0000 1.5 --- Makefile.module.in 14 May 2005 10:22:31 -0000 1.6 *************** *** 37,42 **** # # NAVISERVER naviserver install directory. ! # MOD Name of module # MODOBJS List of module object files (required with MOD) # LIB Root name of dynamic library (without lib prefix or extension) # LIBOBJS List of library object files (required with LIB) --- 37,44 ---- # # NAVISERVER naviserver install directory. ! # MODNAME Unique name of module ! # MOD File name of binary loadable module # MODOBJS List of module object files (required with MOD) + # TCL List of module shared Tcl files # LIB Root name of dynamic library (without lib prefix or extension) # LIBOBJS List of library object files (required with LIB) *************** *** 79,82 **** --- 81,91 ---- endif + ifdef TCL + ifndef MODNAME + $(error MODNAME not specified) + endif + INSTALL += install-tcl + endif + ifdef LIB LIBFILE = lib$(LIB)$(LIBEXT) *************** *** 140,143 **** --- 149,158 ---- $(INSTALL_SH) $(MOD) $(INSTBIN)/ + install-tcl: $(TCL) + $(MKDIR) $(INSTTCL)/$(MODNAME) + for t in $(TCL); do \ + $(INSTALL_DATA) $$t $(INSTTCL)/$(MODNAME)/; \ + done + install-lib: $(LIBFILE) $(INSTALL_SH) $(LIBFILE) $(INSTLIB)/ |