Permalink
Browse files

May this work on FreeBSD. I think the plug-in problem stems from the …

…fact

that there are pre-existing "Makefile" files in those directory which
don't properly implement the "install" target.
  • Loading branch information...
1 parent 8337fd0 commit 8ac7beea28e584b43ded3add51625026b2c77306 @Xliff Xliff committed Apr 25, 2001
Showing with 11 additions and 3 deletions.
  1. +11 −3 Makefile
View
@@ -84,11 +84,16 @@ install: slash plugins
# directory it will be easy
# Lets go install the libraries, remember to clean out old versions.
(cd Slash; make install UNINST=1)
- # Lets go install the plugin's libraries
+ # Lets go install the plugin libraries
+ #
+ # This tries to intelligently install plugins based on whether or not
+ # they have a Makefile. Not all current plugins have the "install" target
+ # so we shouldn't track them for errors, at this time. This should be
+ # fixed, eventually.
#
# If 'plugins' is already a dependency, why do we need to regenerate the
# Makefile? - Cliff
- (cd plugins; \
+ -(cd plugins; \
for a in $(PLUGINS); do \
(cd $$a; \
if [ -f Makefile ]; then \
@@ -144,7 +149,10 @@ install: slash plugins
install -d $(SLASH_PREFIX)/$$d; \
install $$f $(SLASH_PREFIX)/$$d/$$b; \
if [ -f "$$f.bak" ]; then \
- rm $$f; mv $$f.bak $$f; \
+ if [ -f $$f ]; then \
+ rm $$f; \
+ fi; \
+ mv $$f.bak $$f; \
fi; \
done)

0 comments on commit 8ac7bee

Please sign in to comment.