Makefile.am revision ca376fcbe51b9a102a490545957d5fee69e253e1
1# -*- Makefile -*-
2
3ACLOCAL_AMFLAGS  = -I m4
4AUTOMAKE_OPTIONS = foreign subdir-objects
5
6SUBDIRS          = libiptc libxtables
7if ENABLE_DEVEL
8SUBDIRS         += include
9endif
10if ENABLE_LIBIPQ
11SUBDIRS         += libipq
12endif
13SUBDIRS         += utils
14# Depends on libxtables:
15SUBDIRS         += extensions
16# Depends on extensions/libext.a:
17SUBDIRS         += iptables
18
19.PHONY: tarball
20tarball:
21	rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
22	pushd ${top_srcdir} && git archive --prefix=${PACKAGE_TARNAME}-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd;
23	pushd /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION} && ./autogen.sh && popd;
24	tar -C /tmp -cjf ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root ${PACKAGE_TARNAME}-${PACKAGE_VERSION}/;
25	rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
26
27install-data-hook:
28	@mkdir -p -m 755 $(DESTDIR)/etc/xtables/ || :
29	@test -f /etc/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf $(DESTDIR)/etc/xtables/connlabel.conf || :
30
31config.status: extensions/GNUmakefile.in \
32	include/xtables-version.h.in include/iptables/internal.h.in
33