]> git.draconx.ca Git - rarpd-dx.git/blob - Makefile.am
1367d07bbc22f62350955bb00d014d31ebce971a
[rarpd-dx.git] / Makefile.am
1 # Copyright © 2023 Nick Bowler
2 #
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
6
7 ACLOCAL_AMFLAGS = -I m4
8
9 AM_CPPFLAGS = -DIPUTILS_VERSION='PACKAGE_STRING,'
10
11 XSLTPROC_MAN = $(XSLTPROC) -o $@ --nonet \
12                --stringparam man.output.quietly 1 \
13                --stringparam funcsynopsis.style ansi \
14                --stringparam man.th.extra1.suppress 1 \
15                --stringparam iputils.version 'rarpd' \
16                $(XSLTPROCFLAGS) $(srcdir)/doc/custom-man.xsl
17
18 DEV_TOOL_ERROR = { \
19   echo "ERROR: *** $$tool is missing on your system."; \
20   echo "       *** Because of this, I cannot compile $$toolsrc, but"; \
21   echo "       *** (perhaps because you modified it) the sources appear out"; \
22   echo "       *** of date.  If $$tool is installed but was not detected by"; \
23   echo "       *** configure, consired setting $$toolvar and re-running configure."; \
24   echo "       *** See config.log for more details."; } >&2; false
25
26 dist_man_MANS = doc/rarpd.8
27 .xml.8:
28 if !HAVE_XSLTPROC
29         $(AM_V_GEN)tool=xsltproc toolvar=XSLTPROC toolsrc=$<; \
30           $(DEV_TOOL_ERROR)
31 endif
32         $(AM_V_GEN) $(XSLTPROC_MAN) $<
33 $(dist_man_MANS): $(srcdir)/doc/custom-man.xsl
34 MAINTAINERCLEANFILES = $(dist_man_MANS)
35 EXTRA_DIST = $(dist_man_MANS:.8=.xml) $(srcdir)/doc/custom-man.xsl
36
37 sbin_PROGRAMS = rarpd
38 rarpd_SOURCES = src/rarpd.c src/iputils_common.c src/iputils_common.h