2
#########################################################################
4
# Script ID: src/man/8/Makefile.am #
5
# Author: Copyright (C) 2018 Mark Grant #
7
# Released under the GPLv3 only. #
8
# SPDX-License-Identifier: GPL-3.0 #
11
# AutoMake script file to generate dnsmasq-logrotate manual pages. #
13
#########################################################################
15
#########################################################################
19
# Date Author Version Description #
21
# 25/05/2018 MG 1.0.1 First release. #
23
#########################################################################
26
dnsmasq-postrotate.sh.8: Makefile
29
$(edit) $(srcdir)/$(@F).man.in > $@.tmp
31
if [[ $$targfile == *"."* ]]; then \
32
if [[ $${targfile##*.} == "" ]]; then \
33
echo "Source file suffix used as section but empty."; \
36
section=$${targfile##*.}; \
39
echo "Source file suffix used as section but no dot & empty."; \
42
txt2manwrap $(@F) $$section "dnsmasq-logrotate Manual" $@.tmp $@
45
dnsmasq-postrotate.sh.8: $(srcdir)/dnsmasq-postrotate.sh.8.man.in
47
man_MANS = dnsmasq-postrotate.sh.8
49
EXTRA_DIST = $(srcdir)/dnsmasq-postrotate.sh.8.man.in
51
CLEANFILES = *.tmp dnsmasq-postrotate.sh.8