mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
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:
+8
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user