File: Makefile

package info (click to toggle)
nethogs 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,640 kB
  • sloc: cpp: 2,706; ansic: 317; python: 134; makefile: 76; sh: 69
file content (56 lines) | stat: -rw-r--r-- 1,337 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export VERSION ?= $(shell ./determineVersion.sh)

#export PREFIX := /usr
export PREFIX ?= /usr/local

all: nethogs

.PHONY: tgz release check install install_lib install_dev uninstall uninstall_lib nethogs libnethogs decpcap_test test clean all
tgz: clean
	git archive --prefix="nethogs-$(VERSION)/" -o "../nethogs-$(VERSION).tar.gz" HEAD

release: clean
	git tag -s v$(RELEASE) -m "Release $(RELEASE)"
	git archive --prefix="nethogs-$(RELEASE)/" -o "../nethogs-$(RELEASE).tar.gz" "v$(RELEASE)"
	gpg --armor --detach-sign "../nethogs-$(RELEASE).tar.gz"
	git push --tags
	echo "now upload the detached signature ../nethogs-$(RELEASE).tar.gz.asc to https://github.com/raboof/nethogs/releases/new?tag=v$(VERSION)"

check:
	$(MAKE) -C src -f MakeApp.mk $@

install:
	$(MAKE) -C src -f MakeApp.mk $@
	$(MAKE) -C doc $@

install_lib:
	$(MAKE) -C src -f MakeLib.mk install

install_dev:
	$(MAKE) -C src -f MakeLib.mk $@

uninstall:
	$(MAKE) -C src -f MakeApp.mk $@
	$(MAKE) -C doc $@

uninstall_lib:
	$(MAKE) -C src -f MakeLib.mk uninstall

nethogs:
	$(MAKE) -C src -f MakeApp.mk $@

libnethogs:
	$(MAKE) -C src -f MakeLib.mk all

decpcap_test:
	$(MAKE) -C src -f MakeApp.mk $@

test:
	$(MAKE) -C src -f MakeApp.mk $@

clean:
	$(MAKE) -C src -f MakeApp.mk $@
	$(MAKE) -C src -f MakeLib.mk $@

format:
	clang-format -i src/*.c src/*.cpp src/*.h