Lines 58-97
Link Here
|
58 |
|
58 |
|
59 |
install: all-targets |
59 |
install: all-targets |
60 |
@for p in $(allexe) ; do \ |
60 |
@for p in $(allexe) ; do \ |
61 |
echo $(INSTALL_PROGRAM) $$p $(cgibin); \ |
61 |
echo $(INSTALL_PROGRAM) $$p $(DESTDIR)$(cgibin); \ |
62 |
$(INSTALL_PROGRAM) $$p $(cgibin); \ |
62 |
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(cgibin); \ |
63 |
done |
63 |
done |
64 |
@if test "x$(CSS_DIR)" != "x" ; then \ |
64 |
@if test "x$(CSS_DIR)" != "x" ; then \ |
65 |
if test -d $(CSS_DIR) ; then \ |
65 |
if test -d $(DESTDIR)$(CSS_DIR) ; then \ |
66 |
$(INSTALL_DATA) multimon.css $(CSS_DIR) ; \ |
66 |
$(INSTALL_DATA) multimon.css $(DESTDIR)$(CSS_DIR) ; \ |
67 |
else \ |
67 |
else \ |
68 |
echo "CSS_DIR $(CSS_DIR) not found, did not install multimon.css" ; \ |
68 |
echo "CSS_DIR $(DESTDIR)$(CSS_DIR) not found, did not install multimon.css" ; \ |
69 |
fi \ |
69 |
fi \ |
70 |
else \ |
70 |
else \ |
71 |
echo "No CSS_DIR found, did not install multimon.css" ; \ |
71 |
echo "No CSS_DIR found, did not install multimon.css" ; \ |
72 |
fi |
72 |
fi |
73 |
# don't overwrite any existing config file |
73 |
# don't overwrite any existing config file |
74 |
@if test ! -f $(sysconfdir)/hosts.conf; then \ |
74 |
@if test ! -f $(DESTDIR)$(sysconfdir)/hosts.conf; then \ |
75 |
(echo "Installing hosts.conf..." && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf); \ |
75 |
(echo "Installing hosts.conf..." && $(INSTALL_DATA) ../etc/hosts.conf $(DESTDIR)$(sysconfdir)/hosts.conf); \ |
76 |
else \ |
76 |
else \ |
77 |
(echo "Installing hosts.conf in $(sysconfdir)/hosts.conf.new" && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf.new); \ |
77 |
(echo "Installing hosts.conf in $(DESTDIR)$(sysconfdir)/hosts.conf.new" && $(INSTALL_DATA) ../etc/hosts.conf $(DESTDIR)$(sysconfdir)/hosts.conf.new); \ |
78 |
fi |
78 |
fi |
79 |
# don't overwrite any existing config file |
79 |
# don't overwrite any existing config file |
80 |
@if test ! -f $(sysconfdir)/multimon.conf; then \ |
80 |
@if test ! -f $(DESTDIR)$(sysconfdir)/multimon.conf; then \ |
81 |
(echo "Installing multimon.conf..." && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf); \ |
81 |
(echo "Installing multimon.conf..." && $(INSTALL_DATA) ../etc/multimon.conf $(DESTDIR)$(sysconfdir)/multimon.conf); \ |
82 |
else \ |
82 |
else \ |
83 |
(echo "Installing multimon.conf in $(sysconfdir)/multimon.conf.new" && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf.new); \ |
83 |
(echo "Installing multimon.conf in $(DESTDIR)$(sysconfdir)/multimon.conf.new" && $(INSTALL_DATA) ../etc/multimon.conf $(DESTDIR)$(sysconfdir)/multimon.conf.new); \ |
84 |
fi |
84 |
fi |
85 |
|
85 |
|
86 |
uninstall: |
86 |
uninstall: |
87 |
@echo "Uninstalling cgi program support..." |
87 |
@echo "Uninstalling cgi program support..." |
88 |
@for p in $(allexe) ; do \ |
88 |
@for p in $(allexe) ; do \ |
89 |
rm -f $(cgibin)/$$p; \ |
89 |
$(RMF) $(DESTDIR)$(cgibin)/$$p; \ |
90 |
done |
90 |
done |
91 |
rm -f $(sysconfdir)/hosts.conf |
91 |
$(RMF) $(DESTDIR)$(sysconfdir)/hosts.conf |
92 |
rm -f $(sysconfdir)/hosts.conf.new |
92 |
$(RMF) $(DESTDIR)$(sysconfdir)/hosts.conf.new |
93 |
rm -f $(sysconfdir)/multimon.conf |
93 |
$(RMF) $(DESTDIR)$(sysconfdir)/multimon.conf |
94 |
rm -f $(sysconfdir)/multimon.conf.new |
94 |
$(RMF) $(DESTDIR)$(sysconfdir)/multimon.conf.new |
95 |
|
95 |
|
96 |
# ----------------------------------------------------------------------- |
96 |
# ----------------------------------------------------------------------- |
97 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |
97 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |