File: Makefile.am

package info (click to toggle)
xtables-addons 1.42-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,392 kB
  • sloc: ansic: 12,409; sh: 11,029; perl: 186; makefile: 116
file content (30 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- Makefile -*-

ACLOCAL_AMFLAGS  = -I m4
SUBDIRS          = extensions geoip

man_MANS := xtables-addons.8

.PHONY: FORCE
FORCE:

xtables-addons.8: FORCE
	${MAKE} -f Makefile.mans all;

install-exec-hook: ;
#	depmod -a || :;

config.status: Makefile.iptrules.in

tmpdir := $(shell mktemp -dtu)
packer  = xz
packext = .tar.xz

.PHONY: tarball
tarball:
# do not use mkdir_p here.
	mkdir ${tmpdir}
	pushd ${top_srcdir} && git archive --prefix=${PACKAGE_NAME}-${PACKAGE_VERSION}/ HEAD | tar -C ${tmpdir} -x && popd;
	pushd ${tmpdir}/${PACKAGE_NAME}-${PACKAGE_VERSION} && ./autogen.sh && popd;
	tar --use=${packer} -C ${tmpdir} -cf ${PACKAGE_NAME}-${PACKAGE_VERSION}${packext} --owner=root --group=root ${PACKAGE_NAME}-${PACKAGE_VERSION}/;
	rm -Rf ${tmpdir};