File: Makefile.in

package info (click to toggle)
xsane 0.998-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,508 kB
  • ctags: 7,713
  • sloc: ansic: 46,136; makefile: 714; sh: 197; sed: 50
file content (105 lines) | stat: -rw-r--r-- 2,851 bytes parent folder | download | duplicates (8)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
SHELL = /bin/sh

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
configdir = ${sysconfdir}/sane.d
sanedatadir = ${datadir}/sane
xsanedocdir = ${datadir}/sane/xsane/doc

MKINSTALLDIRS = @MKINSTALLDIRS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

@SET_MAKE@

SECT1	= xsane.1
MANPAGES = $(SECT1)
LATEX	= TEXINPUTS=$(srcdir):$$TEXINPUTS latex
DLH	= TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
MAN2HTML= nroff -man |\
	  man2html -compress -title $${page} -cgiurl '$$title.$$section.html'|\
	  sed 's,<BODY>,<BODY BGCOLOR=\#FFFFFF TEXT=\#000000><H1 ALIGN=CENTER><IMG SRC="../sane.jpg" HEIGHT=117 WIDTH=346></H1>,'

all: $(MANPAGES)

%.1: %.man
	sed -e 's|@DATADIR@|$(datadir)|g' \
	    -e 's|@SANEDATADIR@|$(sanedatadir)|g' \
	    -e 's|@CONFIGDIR@|$(configdir)|g' \
	    -e 's|@LIBDIR@|$(libdir)|g' \
	    -e 's|@BINDIR@|$(bindir)|g' \
	    -e 's|@SBINDIR@|$(sbindir)|g' $^ >$@

install: $(MANPAGES)
	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1 
	@for page in $(SECT1); do \
	  echo installing $${page} in $(DESTDIR)$(mandir)/man1/$${page}...; \
	  $(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man1/$${page} || exit 1; \
	done
	$(MKINSTALLDIRS) $(DESTDIR)$(datadir)

	$(MKINSTALLDIRS) $(DESTDIR)$(xsanedocdir)
	@for page in *.html; do\
	  echo installing $${page} in $(DESTDIR)$(xsanedocdir)/$${page}...; \
	  $(INSTALL_DATA) $${page} $(DESTDIR)$(xsanedocdir)/$${page} || exit 1; \
	done

	@for image in *.jpg; do\
	  echo installing $${image} in $(DESTDIR)$(xsanedocdir)/$${image}...; \
	  $(INSTALL_DATA) $${image} $(DESTDIR)$(xsanedocdir)/$${image} || exit 1; \
	done

uninstall:
	@for page in $(SECT1); do \
	  echo uninstalling $(DESTDIR)$(mandir)/man1/$${page}...; \
	  rm -f $(DESTDIR)$(mandir)/man1/$${page} || exit 1; \
	done

	@for page in *.html; do\
	  echo uninstalling $(DESTDIR)$(xsanedocdir)/$${page}...; \
	  rm -f $(DESTDIR)$(xsanedocdir)/$${page} || exit 1; \
	done

	@for image in *.jpg; do\
	  echo uninstalling $${image} in $(DESTDIR)$(xsanedocdir)/$${image}...; \
	  rm -f $(DESTDIR)$(xsanedocdir)/$${image} || exit 1; \
	done

docs: ps html

html-man: $(MANPAGES)
	@for page in $(MANPAGES); do \
	  echo "translating $${page} to $${page}.html..."; \
	  cat $${page} | $(MAN2HTML) > $${page}.html; \
	done


clean:
	rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
	rm -f *.ilg

distclean: clean
	rm -f $(MANPAGES)
	rm -f Makefile *~

depend:

.PHONY: all install depend clean ps html htmlman sane-backends-html