File: Makefile.am

package info (click to toggle)
cgdb 0.6.7-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 3,276 kB
  • sloc: ansic: 17,828; sh: 5,176; exp: 1,019; lex: 611; makefile: 287; yacc: 255; cpp: 10
file content (31 lines) | stat: -rw-r--r-- 925 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
29
30
31
info_TEXINFOS = cgdb.texinfo
cgdb_TEXINFOS = gpl.texi

dist_man_MANS = cgdb.1
EXTRA_DIST = cgdb.txt

dist_pkgdata_DATA = cgdb.txt

# generate the man page using help2man.
cgdb.1:
	help2man --output=$(top_srcdir)/doc/cgdb.1 $(top_builddir)/cgdb/cgdb$(EXEEXT)

cgdb.txt: cgdb.texinfo $(srcdir)/version.texi $(cgdb_TEXINFOS)
TEXTS = cgdb.txt
text-am: $(TEXTS)
MAKEINFOTXT = $(MAKEINFO) --plaintext
AM_MAKEINFOTXTFLAGS = $(AM_MAKEINFOFLAGS)

.texinfo.txt:
	rm -rf $(@:.txt=.htp)
	if $(MAKEINFOTXT) $(AM_MAKEINFOTXTFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
	-o $(@:.txt=.htp) $<; \
        then \
          rm -rf $@; \
          if test ! -d $(@:.txt=.htp) && test -d $(@:.txt=); then \
            mv $(@:.txt=) $@; else mv $(@:.txt=.htp) $@; fi; \
        else \
          if test ! -d $(@:.txt=.htp) && test -d $(@:.txt=); then \
            rm -rf $(@:.txt=); else rm -Rf $(@:.txt=.htp) $@; fi; \
          exit 1; \
        fi