Lines 26-50
Link Here
|
26 |
exec_prefix = @exec_prefix@ |
26 |
exec_prefix = @exec_prefix@ |
27 |
|
27 |
|
28 |
# Directory in which to install the program scotty: |
28 |
# Directory in which to install the program scotty: |
29 |
BIN_INSTALL_DIR = $(exec_prefix)/bin |
29 |
BIN_INSTALL_DIR = $(DESTDIR)$(exec_prefix)/bin |
30 |
|
30 |
|
31 |
# Directory in which to install dynamic loadable modules: |
31 |
# Directory in which to install dynamic loadable modules: |
32 |
LIB_INSTALL_DIR = $(exec_prefix)/lib |
32 |
LIB_INSTALL_DIR = $(DESTDIR)$(exec_prefix)/lib |
33 |
|
33 |
|
34 |
# Directory in which dynamic loadable modules are installed: |
34 |
# Directory in which dynamic loadable modules are installed: |
35 |
LIB_RUNTIME_DIR = $(exec_prefix)/lib |
35 |
LIB_RUNTIME_DIR = $(DESTDIR)$(exec_prefix)/lib |
36 |
|
36 |
|
37 |
# Directory in which to install library files belonging to the extension. |
37 |
# Directory in which to install library files belonging to the extension. |
38 |
TNM_INSTALL_DIR = $(prefix)/lib/tnm$(TNM_VERSION) |
38 |
TNM_INSTALL_DIR = $(DESTDIR)$(prefix)/lib/tnm$(TNM_VERSION) |
39 |
|
39 |
|
40 |
# Directory in which to install library files belonging to the extension. |
40 |
# Directory in which to install library files belonging to the extension. |
41 |
TCL_INSTALL_DIR = $(prefix)/lib/tcl$(TCL_VERSION) |
41 |
TCL_INSTALL_DIR = $(DESTDIR)$(prefix)/lib/tcl$(TCL_VERSION) |
42 |
|
42 |
|
43 |
# Directory in which to install the library of tkined scripts. |
43 |
# Directory in which to install the library of tkined scripts. |
44 |
TKI_INSTALL_DIR = $(prefix)/lib/tkined$(TKI_VERSION) |
44 |
TKI_INSTALL_DIR = $(DESTDIR)$(prefix)/lib/tkined$(TKI_VERSION) |
45 |
|
45 |
|
46 |
# Top-level directory for manual entries: |
46 |
# Top-level directory for manual entries: |
47 |
MAN_INSTALL_DIR = $(prefix)/man |
47 |
MAN_INSTALL_DIR = $(DESTDIR)$(prefix)/man |
48 |
|
48 |
|
49 |
# Directory in which to install the manual entries: |
49 |
# Directory in which to install the manual entries: |
50 |
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1 |
50 |
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1 |
Lines 526-535
Link Here
|
526 |
echo "Installing $$i"; \ |
526 |
echo "Installing $$i"; \ |
527 |
$(INSTALL_DATA) $$i $(TNM_INSTALL_DIR)/mibs ; \ |
527 |
$(INSTALL_DATA) $$i $(TNM_INSTALL_DIR)/mibs ; \ |
528 |
done |
528 |
done |
529 |
@TCLLIBPATH="$(TNM_INSTALL_DIR) $$TCLLIBPATH"; \ |
529 |
# from the mib man page: |
530 |
export TCLLIBPATH; \ |
530 |
# === |
531 |
echo 'foreach f $$tnm(mibs) {puts "Parsing $$f"; mib load $$f}; exit' | \ |
531 |
# The mib load command loads the MIB definitions contained in file. |
532 |
./scotty |
532 |
# <snip> |
|
|
533 |
# A condensed format of the MIB definition is saved in a |
534 |
# platform specific sub-directory below $tnm(library) to speed |
535 |
# up future load commands. Note, this requires write permissions for |
536 |
# the platform specific sub-directory. |
537 |
# === |
538 |
# |
539 |
# The behaviour described in the last four lines causes |
540 |
# sandbox violations, so we leave this out here (stsp). |
541 |
# |
542 |
#@TCLLIBPATH="$(TNM_INSTALL_DIR) $$TCLLIBPATH"; \ |
543 |
#export TCLLIBPATH; \ |
544 |
#echo 'foreach f $$tnm(mibs) {puts "Parsing $$f"; mib load $$f}; exit' | \ |
545 |
# ./scotty |
533 |
tnm-install-library: |
546 |
tnm-install-library: |
534 |
@for i in $(TNM_INSTALL_DIR)/library ; \ |
547 |
@for i in $(TNM_INSTALL_DIR)/library ; \ |