root/src/man/Makefile.in

Revision 71c9fd835359f946c7f9fa9c7354a1fd5ec0988b, 1.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

clean up makefile, unGNUMake it

  • Property mode set to 100644
Line 
1 INSTALL=@INSTALL@
2 XML2H=@top_srcdir@/buildtools/xml2h
3 XSLTPROC=@XSLTPROC@
4 NROFF=@NROFF@
5
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 bindir=@bindir@
9 sbindir=@sbindir@
10 libdir=@libdir@
11 includedir=${prefix}/include
12 libexecdir=@libexecdir@
13 datarootdir = @datarootdir@
14 mandir=@mandir@
15 mansubdir=@mansubdir@
16 docdir=${prefix}/@docdir@
17 sysconfdir=@sysconfdir@
18 srcdir=@srcdir@
19 top_srcdir=@top_srcdir@
20
21 all:    noitd.8 noitd.usage.h \
22         stratcond.8 stratcond.usage.h
23
24 noitd.8:        $(top_srcdir)/docs/executable/noitd.xml
25         @echo " - manifying $@"
26         @$(XSLTPROC) --nonet \
27                 $(top_srcdir)/docs/docbook-xsl/manpages/docbook.xsl \
28                 $(top_srcdir)/docs/executable/noitd.xml > /dev/null 2>&1
29
30 noitd.usage.h:  noitd.8
31         @echo " - creating $@"
32         @$(NROFF)  -mandoc ./noitd.8 | \
33                 $(top_srcdir)/buildtools/xml2h NOITD_USAGE > $@
34
35 stratcond.8:    $(top_srcdir)/docs/executable/stratcond.xml
36         @echo " - manifying $@"
37         @$(XSLTPROC) --nonet \
38                 $(top_srcdir)/docs/docbook-xsl/manpages/docbook.xsl \
39                 $(top_srcdir)/docs/executable/stratcond.xml > /dev/null 2>&1
40
41 stratcond.usage.h:      stratcond.8
42         @echo " - creating $@"
43         @$(NROFF)  -mandoc ./stratcond.8 | \
44                 $(top_srcdir)/buildtools/xml2h STRATCOND_USAGE > $@
45
46 install:        all
47         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(mandir)
48         $(INSTALL) -m 0644 noitd.8 $(DESTDIR)$(mandir)/$(mansubdir)8/noitd.8
49         $(INSTALL) -m 0644 stratcond.8 $(DESTDIR)$(mandir)/$(mansubdir)8/stratcond.8
50
51 clean:
52         rm -f noitd.8 noitd.usage.h stratcond.8 stratcond.usage.h
53
Note: See TracBrowser for help on using the browser.