File: Makelocal-manpages

package info (click to toggle)
cod-tools 3.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 154,792 kB
  • sloc: perl: 57,588; sh: 36,842; ansic: 6,402; xml: 1,982; yacc: 1,117; makefile: 727; python: 166
file content (28 lines) | stat: -rw-r--r-- 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#--*- Makefile -*--------------------------------------------------------------
#$Author: antanas $
#$Revision: 8840 $
#$Date: 2021-07-30 19:52:52 +0300 (Fri, 30 Jul 2021) $
#$URL: svn+ssh://www.crystallography.net/home/coder/svn-repositories/cod-tools/tags/v3.7.0/Makelocal-manpages $
#------------------------------------------------------------------------------

MAN_DIR = doc/man
C_PROGRAM_EXE_FILE_BASES = ${notdir ${C_PROGRAM_EXE_FILES}}
MAN_FILES = ${CODTOOLS_SCRIPTS:scripts/%=${MAN_DIR}/%.1} \
            ${C_PROGRAM_EXE_FILE_BASES:%=${MAN_DIR}/%.1}

BUGS_EMAIL = cod-bugs@ibt.lt

man: ${MAN_FILES}

all: man

${MAN_DIR}/%.1: scripts/%
	-tools/help2man $< --bugs-email ${BUGS_EMAIL} > $@

${MAN_DIR}/%.1: src/components/codcif/%
	-$< --help | tools/help2man --stdin --name $* --bugs-email ${BUGS_EMAIL} > $@

clean-man:
	rm -f ${MAN_FILES}

cleanAll distclean: clean-man