Added support for meta dirs

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@624 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-08 11:08:48 +00:00
parent 479f37a29c
commit eaf49c1fa1
+8 -1
View File
@@ -27,13 +27,20 @@ all: $(OBJS) $(TARGETS)
depend::
$(CXX) -MM $(CXXFLAGS) $(SRCS) $(INCLUDES) $(PERLCC) >.depend
install: all create_install_dir $(INSTALL_TARGS)
install: all create_install_dir install_metadirs $(INSTALL_TARGS)
@echo -n ""
create_install_dir:
mkdir -p $(DESTDIR)$(prefix)/share/znc
rm -rf $(DESTDIR)$(prefix)/share/znc/*.so
install_metadirs:
for a in *; do \
if [ -d $$a ] && [ -f $${a}.so ]; then \
cp -Ra $$a $(DESTDIR)$(prefix)/share/znc; \
fi \
done
install_%:
install -m 0755 $(subst install_,,$@) $(DESTDIR)$(prefix)/share/znc