File: Makefile

package info (click to toggle)
openssl 0.9.8c-4etch9
  • links: PTS
  • area: main
  • in suites: etch
  • size: 19,340 kB
  • ctags: 26,395
  • sloc: ansic: 203,603; perl: 18,445; makefile: 10,732; asm: 10,675; cpp: 4,379; sh: 2,925; lisp: 23
file content (40 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (8)
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
33
34
35
36
37
38
39
40
VERSION =

#PODS = $(wildcard *.pod)
#MANS = $(addsuffix .man, $(basename $(PODS)))

MANS = openssl.1 ssl.3 crypto.3

P2M = pod2man --center='OpenSSL Documentation' --release="OpenSSL $(VERSION)"

all: manpages

.PHONY: manpages 

manpages: openssl.1 crypto.3 ssl.3

openssl.1:
	$(P2M) --section=1 openssl.pod > openssl.1

crypto.3:
	$(P2M) --section=3 crypto.pod > crypto.3

ssl.3:
	$(P2M) --section=3 ssl.pod > ssl.3

.PHONY: install
install:
	mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
	mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
	install -m 644 -p openssl.1 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
	install -m 644 -p crypto.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
	install -m 644 -p ssl.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
	rm -f $(MANS)

.PHONY: clean
clean:
	rm -f $(MANS)

.PHONY: realclean
realclean:
	-$(MAKE) clean