File: Makefile

package info (click to toggle)
xxdiff 1%3A4.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 2,245
  • sloc: cpp: 18,495; python: 6,134; sh: 1,543; ansic: 1,535; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 82
file content (63 lines) | stat: -rwxr-xr-x 1,124 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env make
#
# $Source$
# $Id: Makefile 766 2004-02-25 17:37:35Z blais $
#
# Automatic generation of HTML for tools.

USERMANUAL=xxdiff-doc.html

TXTDOC=						\
	xxdiff-integration.txt			\
	xxdiff-secrets.txt			\
	xxdiff-scripts.txt

TXTDOC_HTML = $(TXTDOC:.txt=.html)

TXTHTML_CONVERT=projects-rst2html --project-header  --project-home="http://furius.ca/xxdiff"

BIN=../bin

# TOOLS=						\
# 	condreplace				\
# 	findgrepsed				\
# 	cvsdiff					\
# 	diffproxy				\
# 	svndiff					\
# 	encrypted				\
# 	match					\
# 	patch

# TMPFILE=/tmp/xxdiff-doc-convert.tmp
# SCRIPTS = $(patsubst %,$(BIN)/%,$(TOOLS))
# TOOLS_HTML = $(TOOLS:=.html)

# $(TOOLS_HTML) : %.html : $(BIN)/%
# 	python-genpage -l $< -o $(TMPFILE) $<
# 	$(TXTHTML_CONVERT) $(TMPFILE) $@
# 	rm -f $(TMPFILE)


.SUFFIXES: .txt .html

all: $(USERMANUAL) $(TXTDOC_HTML)

.txt.html:
	$(TXTHTML_CONVERT) $< $@

$(USERMANUAL): $(BIN)/xxdiff
	$(BIN)/xxdiff --help-html > $@


clean:
	rm -f $(USERMANUAL)
	rm -f $(TOOLS_HTML)
	rm -f $(TXTDOC_HTML)

debug:
	@echo TOOLS
	@echo $(TOOLS)
	@echo SCRIPTS
	@echo $(SCRIPTS)
	@echo TOOLS_HTML
	@echo $(TOOLS_HTML)