Debian Codegraph @

Makefile

raw symbols SCIP
1 PREFIX ?= /usr/local
2 SYSTEMD_PATH ?= /etc/systemd/system
3 SYSV_INIT ?= /etc/init.d
4
5 VERSION := 0.3.1
6 DIST := default LICENSE Makefile netconsole.init netconsole.service netconsole-setup netconsole-setup.8.md NEWS README.md
7
8 all: doc
9
10 clean:
11 rm -f netconsole-setup.8
12
13 check:
14 shellcheck -e SC1090,SC1091 netconsole.init netconsole-setup
15
16 dist: netconsole-$(VERSION).tar.xz netconsole-$(VERSION).tar.xz.asc
17
18 version:
19 @echo $(VERSION)
20
21 %.asc: %
22 gpg --armor --batch --detach-sign --yes --output $@ $^
23
24 %.tar.xz: $(DIST)
25 tar -c --exclude-vcs --transform="s@^@$*/@" $^ | xz -cz9 > $@
26
27 doc: netconsole-setup.8
28
29 %.8: %.8.md
30 pandoc -s -t man $^ -o $@
31
32 install: doc
33 install -D -m 755 netconsole-setup $(DESTDIR)$(PREFIX)/sbin/netconsole-setup
34 install -D -m 644 netconsole-setup.8 $(DESTDIR)$(PREFIX)/share/man/man8/netconsole-setup.8
35 install -D -m 755 netconsole.init $(DESTDIR)$(SYSV_INIT)/netconsole
36 install -D -m 644 netconsole.service $(DESTDIR)$(SYSTEMD_PATH)/netconsole.service
37 install -D -m 644 default $(DESTDIR)/etc/default/netconsole
38
39 .PHONY: all check clean doc install version