summaryrefslogtreecommitdiff
path: root/linuxthreads/man/Makefile
blob: d82e893566aca991d4e0c4a1ced97693f934be20 (plain)
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
SOURCES= pthread_cleanup_push.man \
  pthread_kill_other_threads_np.man pthread_mutexattr_setkind_np.man

MANPAGES=$(SOURCES:.man=.3thr)

PREPRO=perl troffprepro

MANDIR=/usr/man/man3

all: $(MANPAGES)

.SUFFIXES: .man .3thr

.man.3thr:
	$(PREPRO) $*.man $*.3thr

$(MANPAGES): troffprepro

clean:
	rm -f *.3thr
	rm -f *~

install:
	install *.3thr $(MANDIR)
	@echo "*** Remember to run /usr/sbin/makewhatis `dirname $(MANDIR)` at some point"