Makefile.am 682 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# Makefile.am                                          -*-Makefile-*-

include $(top_srcdir)/config/Makefile.xt
-include sdf-purify.c.dep

bin_PROGRAMS	= sdf-purify
SCFLAGS         = --main $* --verbose 0
STRINCLUDES	= -I $(top_builddir)/config
nodist_sdf_purify_SOURCES = sdf-purify.c
CLEANFILES	= sdf-purify.c{,.dep} $(man_MANS) sdf-purify.inc
EXTRA_DIST	= sdf-purify.str

13
14
15
16
17
if HAVE_HELP2MAN
man_MANS	= sdf-purify.1
EXTRA_DIST	+= sdf-purify.1
endif

18
19
20
21
22
23
sdf-purify.1: sdf-purify sdf-purify.inc
	$(HELP2MAN) -S LRDE -i sdf-purify.inc --no-info ./sdf-purify -o $@

sdf-purify.inc: $(top_srcdir)/src/mancmds
	sed -e "/^sdf-purify$$/d" $< | \
	  sed -f $(top_srcdir)/config/seealso.sed >$@