File: Makefile

package info (click to toggle)
flashcache 3.1.2%2Bgit20140801-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 800 kB
  • ctags: 892
  • sloc: ansic: 9,070; sh: 403; perl: 329; makefile: 200
file content (17 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
# -*- makefile -*-

PREFIX ?= /usr
MANPAGES := $(patsubst %.mdwn, %.8, $(wildcard *.mdwn))

all: $(MANPAGES)

clean:
	$(RM) $(MANPAGES)

$(MANPAGES):
	pandoc --standalone --to=man --output=$@ $(@:.8=.mdwn)

install: $(MANPAGES)
	install -m0644 $(MANPAGES) $(DESTDIR)${PREFIX}/share/man/man8