-
-
Notifications
You must be signed in to change notification settings - Fork 290
/
Makefile
56 lines (40 loc) · 1.32 KB
/
Makefile
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: decpcap_test test 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