-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.am
47 lines (32 loc) · 1.17 KB
/
Makefile.am
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- Makefile -*-
ACLOCAL_AMFLAGS = -I m4
xt_srcdir = ${abs_srcdir}/src
_kcall = -C ${kbuilddir} M=${xt_srcdir}
.PHONY: modules modules_install clean_modules \
libxt-local libxt-install libxt-clean install clean all
all: modules libxt-local
install: modules_install libxt-install
clean: clean_modules libxt-clean
modules:
${MAKE} ${_kcall} modules
modules_install:
${MAKE} ${_kcall} INSTALL_MOD_PATH=${DESTDIR} ext-mod-dir='$${INSTALL_MOD_DIR}' modules_install
clean_modules:
${MAKE} ${_kcall} clean
_mcall = -C ${xt_srcdir} -f ${top_builddir}/../Makefile.libxt
libxt-local:
${MAKE} ${_mcall} all
libxt-install:
${MAKE} ${_mcall} install
libxt-clean:
${MAKE} ${_mcall} clean
tmpdir := $(shell mktemp -dtu)
packer = xz
packext = .tar.xz
.PHONY: tarball
tarball:
mkdir ${tmpdir}
pushd ${top_srcdir} && git archive --prefix=${PACKAGE_NAME}-${PACKAGE_VERSION}/ HEAD | tar -C ${tmpdir} -x && popd;
pushd ${tmpdir}/${PACKAGE_NAME}-${PACKAGE_VERSION} && autoreconf -fi && rm -Rf autom4te*.cache && popd;
tar --use=${packer} -C ${tmpdir} -cf ${PACKAGE_NAME}-${PACKAGE_VERSION}${packext} --owner=root --group=root ${PACKAGE_NAME}-${PACKAGE_VERSION}/;
rm -Rf ${tmpdir};