2
#########################################################################
4
# Script ID: src/man/1/Makefile.am #
5
# Author: Copyright (C) 2014-2018 Mark Grant #
7
# Released under the GPLv3 only. #
8
# SPDX-License-Identifier: GPL-3.0 #
11
# AutoMake script file to generate wutconv manual pages from source. #
13
#########################################################################
15
#########################################################################
19
# Date Author Version Description #
21
# 04/09/2014 MG 1.0.1 First release. #
22
# 23/10/2015 MG 1.0.2 Restructure to conform to AutoTools #
23
# General Template v1.0.6. #
24
# 02/05/2017 MG 1.0.3 Output from $(edit) was being ignored. #
25
# Rename source file extension .man.in #
26
# 02/12/2017 MG 1.0.4 Determine the manual section from the #
27
# target suffix. If the suffix is blank #
28
# (foo.) or if there is no suffix (foo) #
30
# Add SPDX license tags to source files. #
31
# 10/02/2018 MG 1.0.5 Change file's header for new directory #
34
#########################################################################
40
$(edit) $(srcdir)/$(@F).man.in > $@.tmp
42
if [[ $$targfile == *"."* ]]; then \
43
if [[ $${targfile##*.} == "" ]]; then \
44
echo "Source file suffix used as section but empty."; \
47
section=$${targfile##*.}; \
50
echo "Source file suffix used as section but no dot & empty."; \
53
txt2manwrap $(@F) $$section "Windows / Unix Text File Converter" \
57
wutconv.1: $(srcdir)/wutconv.1.man.in
61
EXTRA_DIST = $(srcdir)/wutconv.1.man.in
63
CLEANFILES = *.tmp wutconv.1