summaryrefslogtreecommitdiffstats
path: root/py/Makefile.am
blob: 0963535d068dc6a19ad71f2d544ec2f1a3952780 (plain)
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
EXTRA_DIST = setup.py __init__.py nftables.py

if HAVE_PYTHON

all-local:
	cd $(srcdir) && \
		$(PYTHON_BIN) setup.py build --build-base $(abs_builddir)

install-exec-local:
	cd $(srcdir) && \
		$(PYTHON_BIN) setup.py build --build-base $(abs_builddir) \
		install --prefix $(DESTDIR)$(prefix)

uninstall-local:
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/nftables
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/dist-packages/nftables
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/nftables-[0-9]*.egg-info
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/dist-packages/nftables-[0-9]*.egg-info
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/nftables-[0-9]*.egg
	rm -rf $(DESTDIR)$(prefix)/lib*/python*/dist-packages/nftables-[0-9]*.egg

clean-local:
	cd $(srcdir) && \
		$(PYTHON_BIN) setup.py clean \
		--build-base $(abs_builddir)
	rm -rf scripts-* lib* build dist bdist.* nftables.egg-info
	find . -name \*.pyc -print0 | xargs -0 rm -f

distclean-local:
	rm -f version
endif