File: Makefile

package info (click to toggle)
git-ftp 1.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 272 kB
  • sloc: sh: 2,545; makefile: 76
file content (32 lines) | stat: -rw-r--r-- 609 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
23
24
25
26
27
28
29
30
31
32
# Make a man page
#
# You can view the results of editing the man page on the fly:
#
#   pandoc -s -w man git-ftp.1.md | man -l -
#
SHELL=/bin/sh

# files that need mode 644
MAN_FILE=git-ftp.1
HTML_FILE=git-ftp.html

all:
	@echo "usage: make man"
	@echo "       make man-ronn  # use ronn instead of pandoc"
	@echo "       make html"
	@echo "       make clean"
man:
	pandoc -s \
		-w man git-ftp.1.md \
		-o  $(MAN_FILE)
man-ronn:
	ronn --roff --pipe \
		git-ftp.1.md \
		> $(MAN_FILE)
html:
	pandoc -s -S --toc \
		-c git-ftp.css git-ftp.1.md \
		-o $(HTML_FILE)
clean:
	rm -f $(MAN_FILE)
	rm -f $(HTML_FILE)