mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
build: do not unconditionally install ipset
build_ipset=n was not completely respected and the ipset userspace parts were still installed. This is now fixed.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# -*- Makefile -*-
|
# -*- Makefile -*-
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign subdir-objects
|
AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||||
SUBDIRS = extensions extensions/ipset
|
SUBDIRS = extensions
|
||||||
|
|
||||||
man_MANS := xtables-addons.8
|
man_MANS := xtables-addons.8
|
||||||
|
|
||||||
|
@@ -53,22 +53,30 @@ include ${srcdir}/Mbuild
|
|||||||
#
|
#
|
||||||
# Building blocks
|
# Building blocks
|
||||||
#
|
#
|
||||||
targets := ${obj-m}
|
targets := $(filter-out %/,${obj-m})
|
||||||
targets_install := ${obj-m}
|
targets_install := ${targets}
|
||||||
|
subdirs_list := $(filter %/,${obj-m})
|
||||||
|
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
.PHONY: all install clean distclean FORCE
|
.PHONY: all install clean distclean FORCE
|
||||||
|
|
||||||
all: modules user matches.man targets.man
|
all: subdirs modules user matches.man targets.man
|
||||||
|
|
||||||
|
subdirs:
|
||||||
|
@for i in ${subdirs_list}; do ${MAKE} -C $$i; done;
|
||||||
|
|
||||||
|
subdirs-install:
|
||||||
|
@for i in ${subdirs_list}; do ${MAKE} -C $$i install; done;
|
||||||
|
|
||||||
user: ${targets}
|
user: ${targets}
|
||||||
|
|
||||||
install: modules_install ${targets_install}
|
install: modules_install subdirs-install ${targets_install}
|
||||||
@mkdir -p "${DESTDIR}${xtlibdir}";
|
@mkdir -p "${DESTDIR}${xtlibdir}";
|
||||||
install -pm0755 ${targets_install} "${DESTDIR}${xtlibdir}/";
|
install -pm0755 ${targets_install} "${DESTDIR}${xtlibdir}/";
|
||||||
|
|
||||||
clean: clean_modules
|
clean: clean_modules
|
||||||
|
@for i in ${subdirs_list}; do make -C $$i clean; done;
|
||||||
rm -f *.oo *.so;
|
rm -f *.oo *.so;
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
@@ -11,5 +11,6 @@ obj-${build_condition} += libxt_condition.so
|
|||||||
obj-${build_fuzzy} += libxt_fuzzy.so
|
obj-${build_fuzzy} += libxt_fuzzy.so
|
||||||
obj-${build_geoip} += libxt_geoip.so
|
obj-${build_geoip} += libxt_geoip.so
|
||||||
obj-${build_ipp2p} += libxt_ipp2p.so
|
obj-${build_ipp2p} += libxt_ipp2p.so
|
||||||
|
obj-${build_ipset} += ipset/
|
||||||
obj-${build_portscan} += libxt_portscan.so
|
obj-${build_portscan} += libxt_portscan.so
|
||||||
obj-${build_quota2} += libxt_quota2.so
|
obj-${build_quota2} += libxt_quota2.so
|
||||||
|
Reference in New Issue
Block a user