Fix logic of modperl Makefile

This commit is contained in:
Alexey Sokolov
2012-08-15 00:39:55 +07:00
parent 9fd4149d73
commit 6b550f214d
+3 -2
View File
@@ -18,6 +18,7 @@ PERLHOOK := modperl_install
CLEAN += modperl/ZNC.so modperl/ZNC.pm modperl/ZNC.o
CLEAN += modperl/swigperlrun.h modperl/ZNC.cpp modperl/functions.cpp
CLEAN += modperl/gen
all: modperl_all
else
FILES := $(shell echo $(FILES) | sed -e "s/modperl//")
@@ -27,7 +28,7 @@ endif
install: $(PERLHOOK)
modperl.o: modperl/ZNC.so modperl/swigperlrun.h modperl/functions.cpp
modperl_all: modperl/ZNC.so modperl/swigperlrun.h modperl/functions.cpp
modperl/ZNC.so: modperl/ZNC.o Makefile
$(E) Linking ZNC Perl bindings library...
@@ -45,7 +46,7 @@ modperl/swigperlrun.h modperl/functions.cpp modperl/ZNC.cpp modperl/ZNC.pm: modp
$(Q)$(MAKE) -f $(srcdir)/modperl/Makefile.gen $(C) SWIG="$(SWIG)" srcdir="$(srcdir)" PERL="$(PERL)" VERBOSE="$(VERBOSE)" SED="$(SED)"
endif
modperl_install: install_datadir modperl.so
modperl_install: install_datadir modperl_all
for i in $(wildcard $(srcdir)/*.pm); do \
$(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \
done