- rc scripts added (names suggested by Nigel Taylor, I was having a hard time coming up with something nice that avoid a conflict with base snmpd now the rc.d namespace is shared).
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
$OpenBSD: patch-Makefile_rules,v 1.5 2011/07/07 20:02:02 sthen Exp $
|
|
--- Makefile.rules.orig Fri Jul 1 23:35:46 2011
|
|
+++ Makefile.rules Wed Jul 6 23:15:52 2011
|
|
@@ -295,7 +295,8 @@ installlocalbin: $(INSTALLBINPROGS)
|
|
@if test "$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" != " "; then \
|
|
$(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(bindir) ; \
|
|
it="$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" ; \
|
|
- $(INSTALL) $(INSTALLBINPROGS) $(INSTALLBINSCRIPTS) $(INSTALL_PREFIX)$(bindir) ; \
|
|
+ [ -n "$(INSTALLBINPROGS)" ] && $(INSTALL_PROGRAM) $(INSTALLBINPROGS) $(INSTALL_PREFIX)$(bindir) ; \
|
|
+ [ -n "$(INSTALLBINSCRIPTS)" ] && $(INSTALL_SCRIPT) $(INSTALLBINSCRIPTS) $(INSTALL_PREFIX)$(bindir) ; \
|
|
for i in $$it ; do \
|
|
echo "installing $$i in $(INSTALL_PREFIX)$(bindir)"; \
|
|
done \
|
|
@@ -333,7 +334,7 @@ installlocalsbin: $(INSTALLSBINPROGS)
|
|
@if test "$(INSTALLSBINPROGS)" != ""; then \
|
|
it="$(INSTALLSBINPROGS)" ; \
|
|
$(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(sbindir) ; \
|
|
- $(INSTALL) $(INSTALLSBINPROGS) $(INSTALL_PREFIX)$(sbindir) ; \
|
|
+ $(INSTALL_PROGRAM) $(INSTALLSBINPROGS) $(INSTALL_PREFIX)$(sbindir) ; \
|
|
for i in $$it ; do \
|
|
echo "installing $$i in $(INSTALL_PREFIX)$(sbindir)"; \
|
|
done \
|