File: Makefile

package info (click to toggle)
foomuuri 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: python: 3,470; makefile: 112; sh: 39
file content (38 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
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
# Foomuuri - Multizone bidirectional nftables firewall.

.PHONY: all test clean distclean install sysupdate

# Default target is to run tests

all: test

# Check source

test:
	flake8 foomuuri_exporter
	pycodestyle foomuuri_exporter
	pylint foomuuri_exporter

# Nothing to be cleaned

clean distclean:

# Install current source to DESTDIR

BINDIR			?= /usr/bin
SYSTEMD_SYSTEM_LOCATION	?= /usr/lib/systemd/system
SETTINGS_LOCATION	?= /etc/default

install:
	mkdir -p $(DESTDIR)$(BINDIR)/
	cp foomuuri_exporter $(DESTDIR)$(BINDIR)/
	mkdir -p $(DESTDIR)$(SYSTEMD_SYSTEM_LOCATION)/
	cp foomuuri_exporter.service $(DESTDIR)$(SYSTEMD_SYSTEM_LOCATION)/
	mkdir -p $(DESTDIR)$(SETTINGS_LOCATION)/
	cp foomuuri_exporter.default $(DESTDIR)$(SETTINGS_LOCATION)/foomuuri_exporter

# Install current source to local system's root

sysupdate:
	make install DESTDIR=/
	systemctl daemon-reload