File: Makefile

package info (click to toggle)
suricata-update 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,128 kB
  • sloc: python: 4,908; makefile: 188; sh: 62
file content (50 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (3)
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
48
49
50
.PHONY: doc

all: build

build:
	python setup.py build

install:
	python setup.py install

tox:
	@if ! which tox 2>&1 > /dev/null; then \
		echo "error: tox required to run tests"; \
		exit 1; \
	fi

test: tox
	@tox

integration-test: tox
	@tox -c tox-integration.ini

docker-test:
	@if ! which docker 2>&1 > /dev/null; then \
		echo "error: docker is required to run docker tests"; \
		exit 1; \
	fi
	@for test in $(wildcard tests/docker*); do \
		(cd $$test && $(MAKE)); \
	done

clean:
	find . -name \*.pyc -print0 | xargs -0 rm -f
	find . -name \*~ -print0 | xargs -0 rm -f
	find . -name __pycache__ -type d -print0 | xargs -0 rm -rf
	rm -rf suricata_update.egg*
	rm -rf build dist MANIFEST
	cd doc && $(MAKE) clean

doc:
	cd doc && $(MAKE) clean html

sdist:
	python setup.py sdist

sdist-upload:
	python setup.py sdist upload

update-index:
	python -m suricata.update.data.update