• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19if ENABLE_NFTABLES
20confdir		= $(sysconfdir)
21dist_conf_DATA	= etc/ethertypes
22endif
23
24.PHONY: tarball
25tarball:
26	rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
27	pushd ${top_srcdir} && git archive --prefix=${PACKAGE_TARNAME}-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd;
28	pushd /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION} && ./autogen.sh && popd;
29	tar -C /tmp -cjf ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root ${PACKAGE_TARNAME}-${PACKAGE_VERSION}/;
30	rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
31
32config.status: extensions/GNUmakefile.in \
33	include/xtables-version.h.in
34