mirror of
https://github.com/znc/znc.git
synced 2026-08-11 11:23:18 +02:00
Change MODDIR really into the moddir and add --moddir to znc-config
Now we don't append znc everywhere where MODDIR is used :) Thanks to CNU for the initial patch (yay, I didn't forget to mention him. I did with the last commit. The --disable-perl one was spotted by him too) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@862 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+5
-5
@@ -42,16 +42,16 @@ all: $(OBJS) $(TARGETS)
|
||||
depend: .depend
|
||||
|
||||
install: all create_install_dir install_metadirs $(PERLHOOK)
|
||||
install -m 0755 $(TARGETS) $(DESTDIR)$(MODDIR)/znc
|
||||
install -m 0755 $(TARGETS) $(DESTDIR)$(MODDIR)
|
||||
|
||||
create_install_dir:
|
||||
mkdir -p $(DESTDIR)$(MODDIR)/znc
|
||||
rm -rf $(DESTDIR)$(MODDIR)/znc/*.so
|
||||
mkdir -p $(DESTDIR)$(MODDIR)
|
||||
rm -rf $(DESTDIR)$(MODDIR)/*.so
|
||||
|
||||
install_metadirs: create_install_dir
|
||||
for a in *; do \
|
||||
if [ -d $$a ] && [ -f $${a}.so ]; then \
|
||||
cp -Rp $$a $(DESTDIR)$(MODDIR)/znc; \
|
||||
cp -Rp $$a $(DESTDIR)$(MODDIR); \
|
||||
fi \
|
||||
done
|
||||
|
||||
@@ -73,7 +73,7 @@ modperl.o: modperl.cpp
|
||||
|
||||
modperl_install: create_install_dir
|
||||
for i in *.pm; do \
|
||||
install -m 0755 $$i $(DESTDIR)$(MODDIR)/znc; \
|
||||
install -m 0755 $$i $(DESTDIR)$(MODDIR); \
|
||||
done
|
||||
else
|
||||
modperl.so:
|
||||
|
||||
Reference in New Issue
Block a user