Fix make install (modules weren't installed)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@834 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-08-26 06:09:19 +00:00
parent b6cd5b86e1
commit 303af16e67
+2 -6
View File
@@ -25,7 +25,6 @@ endif
SRCS = $(wildcard ../*.cpp) $(addsuffix .cpp, $(FILES))
OBJS = $(addsuffix .o, $(FILES))
TARGETS = $(addsuffix .so, $(FILES))
INSTALL_TARGS = $(foreach file, $(TARGETS), install_$(file))
CLEAN = *.so *.o
@@ -38,8 +37,8 @@ all: $(OBJS) $(TARGETS)
depend: .depend
install: all create_install_dir install_metadirs $(INSTALL_TARGS)
@echo -n ""
install: all create_install_dir install_metadirs
install -m 0755 $(TARGETS) $(DESTDIR)$(MODDIR)/znc
create_install_dir:
mkdir -p $(DESTDIR)$(MODDIR)/znc
@@ -52,9 +51,6 @@ install_metadirs:
fi \
done
install_%: %.so
install -m 0755 $(subst install_,,$@) $(DESTDIR)$(MODDIR)/znc
clean:
rm -rf $(CLEAN)