File: Makefile

package info (click to toggle)
txt2man 1.6.0-1~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 236 kB
  • sloc: sh: 1,293; makefile: 37
file content (22 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Makefile
prefix ?= /usr/local
version = txt2man-1.6.0
date = $(shell dpkg-parsechangelog -c1 -S date | LC_ALL=C date -u +"%d %B %Y" -f -)
BIN = src2man bookman txt2man
MAN1 = src2man.1 txt2man.1 bookman.1

all: $(MAN1)

install: $(MAN1)
	mkdir -p $(prefix)/bin $(prefix)/share/man/man1
	cp $(BIN) $(prefix)/bin/
	cp $(MAN1) $(prefix)/share/man/man1

clean:
	rm -f *.1 *.txt *.ps *.pdf *.html

%.1:%.txt; ./txt2man -s 1 -t $* -r $(version) -d "$(date)" $< > $@
%.txt:%; ./$< -h 2>&1 > $@
%.html:%.1; rman -f HTML $< > $@
%.ps:%.1; groff -man $< > $@
%.pdf:%.ps; ps2pdf $< > $@