|
Packit Service |
8eee21 |
####
|
|
Packit Service |
8eee21 |
# Seccomp Library Python Bindings
|
|
Packit Service |
8eee21 |
#
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
#
|
|
Packit Service |
8eee21 |
# This library is free software; you can redistribute it and/or modify it
|
|
Packit Service |
8eee21 |
# under the terms of version 2.1 of the GNU Lesser General Public License
|
|
Packit Service |
8eee21 |
# as published by the Free Software Foundation.
|
|
Packit Service |
8eee21 |
#
|
|
Packit Service |
8eee21 |
# This library is distributed in the hope that it will be useful, but
|
|
Packit Service |
8eee21 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
8eee21 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
|
|
Packit Service |
8eee21 |
# General Public License for more details.
|
|
Packit Service |
8eee21 |
#
|
|
Packit Service |
8eee21 |
# You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
8eee21 |
# along with this library; if not, see <http://www.gnu.org/licenses>.
|
|
Packit Service |
8eee21 |
#
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
PY_DISTUTILS = \
|
|
Packit Service |
8eee21 |
VERSION_RELEASE="@PACKAGE_VERSION@" \
|
|
Packit Service |
8eee21 |
CPPFLAGS="-I\${top_srcdir}/include ${AM_CPPFLAGS} ${CPPFLAGS}" \
|
|
Packit Service |
8eee21 |
CFLAGS="${AM_CFLAGS} ${CFLAGS}" \
|
|
Packit Service |
8eee21 |
LDFLAGS="${AM_LDFLAGS} ${LDFLAGS}" \
|
|
Packit Service |
8eee21 |
${PYTHON} ${srcdir}/setup.py
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
# support silent builds
|
|
Packit Service |
8eee21 |
PY_BUILD_0 = @echo " PYTHON " $@; ${PY_DISTUTILS} -q build
|
|
Packit Service |
8eee21 |
PY_BUILD_1 = ${PY_DISTUTILS} build
|
|
Packit Service |
8eee21 |
PY_BUILD_ = ${PY_BUILD_0}
|
|
Packit Service |
8eee21 |
PY_BUILD = ${PY_BUILD_@AM_V@}
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
PY_INSTALL = ${PY_DISTUTILS} install
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
EXTRA_DIST = libseccomp.pxd seccomp.pyx setup.py
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
all-local: build
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
build: ../libseccomp.la libseccomp.pxd seccomp.pyx setup.py
|
|
Packit Service |
8eee21 |
[ ${srcdir} == ${builddir} ] || cp ${srcdir}/seccomp.pyx ${builddir}
|
|
Packit Service |
8eee21 |
${PY_BUILD} && touch build
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
install-exec-local: build
|
|
Packit Service |
8eee21 |
${PY_INSTALL} --install-lib=${DESTDIR}/${pyexecdir} \
|
|
Packit Service |
8eee21 |
--record=${DESTDIR}/${pyexecdir}/install_files.txt
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
uninstall-local:
|
|
Packit Service |
8eee21 |
cat ${DESTDIR}/${pyexecdir}/install_files.txt | xargs ${RM} -f
|
|
Packit Service |
8eee21 |
${RM} -f ${DESTDIR}/${pyexecdir}/install_files.txt
|
|
Packit Service |
8eee21 |
|
|
Packit Service |
8eee21 |
clean-local:
|
|
Packit Service |
8eee21 |
[ ${srcdir} == ${builddir} ] || ${RM} -f ${builddir}/seccomp.pyx
|
|
Packit Service |
8eee21 |
${RM} -rf seccomp.c build
|