File: GNUmakefile

package info (click to toggle)
inputplug 0.4.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 156 kB
  • sloc: makefile: 5
file content (18 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
build: inputplug.1 inputplug.md
	cargo build --release

install: build
ifeq ($(DESTDIR),)
	cargo install --path .
else
	cargo install --root "$(DESTDIR)" --path .
endif

inputplug.1: inputplug.pod
	pod2man -r "" -c "" -n $(shell echo $(@:%.1=%) | tr a-z A-Z) $< > $@

inputplug.md: inputplug.pod
	pod2markdown < $< | sed -e 's, - , — ,g' \
	                        -e 's,^- ,* ,g'  \
	                        -e 's,man.he.net/man./,manpages.debian.org/,g' \
	                        -e 's,\[\(<.*@.*>\)\](.*),\1,' > $@