File: Makefile.am

package info (click to toggle)
cgdb 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,468 kB
  • sloc: cpp: 12,169; ansic: 10,042; sh: 4,383; exp: 640; makefile: 197
file content (26 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (2)
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
info_TEXINFOS = cgdb.texi
cgdb_TEXINFOS = gpl.texi

EXTRA_DIST = cgdb.txt

dist_pkgdata_DATA = cgdb.txt

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

.texi.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