]> git.draconx.ca Git - rarpd-dx.git/blob - Makefile.am
Import bootstrap script etc.
[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 EXTRA_DIST = COPYING COPYING.WTFPL2 INSTALL README.md bootstrap
12
13 XSLTPROC_MAN = $(XSLTPROC) -o $@ --nonet \
14                --stringparam man.output.quietly 1 \
15                --stringparam funcsynopsis.style ansi \
16                --stringparam man.th.extra1.suppress 1 \
17                --stringparam iputils.version 'rarpd' \
18                $(XSLTPROCFLAGS) $(srcdir)/doc/custom-man.xsl
19
20 DEV_TOOL_ERROR = { \
21   echo "ERROR: *** $$tool is missing on your system."; \
22   echo "       *** Because of this, I cannot compile $$toolsrc, but"; \
23   echo "       *** (perhaps because you modified it) the sources appear out"; \
24   echo "       *** of date.  If $$tool is installed but was not detected by"; \
25   echo "       *** configure, consired setting $$toolvar and re-running configure."; \
26   echo "       *** See config.log for more details."; } >&2; false
27
28 dist_man_MANS = doc/rarpd.8
29 .xml.8:
30 if !HAVE_XSLTPROC
31         $(AM_V_GEN)tool=xsltproc toolvar=XSLTPROC toolsrc=$<; \
32           $(DEV_TOOL_ERROR)
33 endif
34         $(AM_V_GEN) $(XSLTPROC_MAN) $<
35 $(dist_man_MANS): $(srcdir)/doc/custom-man.xsl
36 MAINTAINERCLEANFILES = $(dist_man_MANS)
37 EXTRA_DIST += $(dist_man_MANS:.8=.xml) $(srcdir)/doc/custom-man.xsl
38
39 sbin_PROGRAMS = rarpd
40 rarpd_SOURCES = src/rarpd.c src/iputils_common.c src/iputils_common.h