File: Makefile

package info (click to toggle)
restricted-ssh-commands 0.4-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 88 kB
  • ctags: 20
  • sloc: sh: 125; makefile: 24
file content (33 lines) | stat: -rw-r--r-- 926 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
PREFIX=/usr

VERSION = 0.4
DATE = 2017-09-29

all:

clean:
	rm -rf restricted-ssh-commands.1 test

test/restricted-ssh-commands: restricted-ssh-commands
	mkdir -p test
	sed 's@config_file="/etc@config_file="$${TEST_ROOT-}/etc@' $^ > $@
	chmod +x $@

check: test/restricted-ssh-commands
	./test-restricted-ssh-commands

%.1: %.pod
	pod2man --center=" " --release="restricted-ssh-commands" -d "$(DATE)" $^ $@

doc: restricted-ssh-commands.1

install: doc
	install -D -m 755 restricted-ssh-commands $(DESTDIR)$(PREFIX)/lib/restricted-ssh-commands
	install -D -m 644 restricted-ssh-commands.1 $(DESTDIR)$(PREFIX)/share/man/man1/restricted-ssh-commands.1

%.tar.xz: LICENSE Makefile NEWS restricted-ssh-commands restricted-ssh-commands.pod test-restricted-ssh-commands
	tar -cJf $@ --transform 's,^,restricted-ssh-commands-$(VERSION)/,' $^

dist: restricted-ssh-commands-$(VERSION).tar.xz

.PHONY: all clean check doc dist install