File: Makefile.am

package info (click to toggle)
cdw 0.8.1-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,372 kB
  • sloc: ansic: 34,660; sh: 1,580; makefile: 232
file content (19 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
src_MANS = cdw.t2t
man_MANS = cdw.1

# each line of shell script in Makefile will be treated as separate
# shell command; a workaround for this is either put whole "if/then/fi"
# in one line, or add ";" and "\" in proper places of script;
# "@" tells "make" to not to print the script to stdout during execution;
# http://forums.fedoraforum.org/showthread.php?t=87434
cdw.1: $(src_MANS)
	@if test "x$(TXT2TAGS)" = "x"; then \
		echo "txt2tags program not found on target system, not compiling man page"; \
	else \
		$(TXT2TAGS) -o - $(src_MANS) > $(man_MANS); \
	fi


# cdw.1 file may not get built (e.g. because there is no txt2tags
# installed), but it needs to be distributed
EXTRA_DIST = $(man_MANS) $(src_MANS)