forked from erlyaws/yaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
48 lines (38 loc) · 1.57 KB
/
Makefile.am
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
41
42
43
44
45
46
47
48
MANPAGES = yaws.1 yaws.conf.5 yaws_api.5 yaws_soap_lib.5
PDFS = $(MANPAGES:=.pdf)
EXTRA_DIST = $(MANPAGES)
if !MINGW
install-data-local:
$(AM_V_at)$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(AM_V_at)$(INSTALL) -d $(DESTDIR)$(mandir)/man5
$(AM_V_at)$(INSTALL) -m 644 @srcdir@/yaws.1 $(DESTDIR)$(mandir)/man1
$(AM_V_at)$(INSTALL) -m 644 @srcdir@/yaws.conf.5 $(DESTDIR)$(mandir)/man5
$(AM_V_at)$(INSTALL) -m 644 @srcdir@/yaws_api.5 $(DESTDIR)$(mandir)/man5
$(AM_V_at)$(INSTALL) -m 644 @srcdir@/yaws_soap_lib.5 $(DESTDIR)$(mandir)/man5
uninstall-local:
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/man1/yaws.1
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/man5/yaws.conf.5
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/man5/yaws_api.5
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/man5/yaws_soap_lib.5
else
install-data-local: pdf
$(AM_V_at)$(INSTALL) -d $(DESTDIR)$(mandir)
$(AM_V_at)$(INSTALL) -m 644 yaws.1.pdf $(DESTDIR)$(mandir)
$(AM_V_at)$(INSTALL) -m 644 yaws.conf.5.pdf $(DESTDIR)$(mandir)
$(AM_V_at)$(INSTALL) -m 644 yaws_api.5.pdf $(DESTDIR)$(mandir)
$(AM_V_at)$(INSTALL) -m 644 yaws_soap_lib.5.pdf $(DESTDIR)$(mandir)
uninstall-local:
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/yaws.1.pdf
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/yaws.conf.5.pdf
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/yaws_api.5.pdf
$(AM_V_at)rm -f $(DESTDIR)$(mandir)/yaws_soap_lib.5.pdf
## for the win32 build, the rest of us know how to run man
pdf-local: $(PDFS)
%.pdf: %
$(AM_V_GEN)$(MAN) -t $< 2>/dev/null | $(PS2PDF) - $@;
clean-local:
$(AM_V_at)rm -f $(PDFS)
endif
# Local Variables:
# tab-width: 8
# End: