File: Makefile.am

package info (click to toggle)
powersave 0.15.20-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,360 kB
  • ctags: 610
  • sloc: sh: 10,767; cpp: 5,264; ansic: 1,495; makefile: 342
file content (72 lines) | stat: -rw-r--r-- 2,057 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
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
SUBDIRS = autodocs

MAN_IN_FILES = powersave.8.in powersaved.8.in
man_MANS = $(MAN_IN_FILES:.in=)

%: %.in Makefile
	$(edit) $< >$@

edit = sed \
        -e 's|@pubscriptdir[@]|$(pubscriptdir)|g' \
        -e 's|@scriptdir[@]|$(scriptdir)|g' \
        -e 's|@configdir[@]|$(configdir)|g' \
        -e 's|@docdir[@]|$(docdir)|g'

READMES = \
	README.battery \
	README.cpufreq \
	README.buttons \
	README.thermal \
	README.suspend \
	README.suspend2ram \
	README.suspend-security \
	README.schemes \
	README.events \
	README.dbus \
	README.scripts \
	README.user_management \
	README.internals \
	README.dsdt \
	README.distributions \
	README.clients \
	README.versions \
	README.faq \
	README.acpi_debugging \
	README.extend \
	README.lists \
	README.bugs \
	README.installation \
	README.todo

EXTRA_DIST = $(man_MANS) \
	     $(READMES) \
	     $(MAN_IN_FILES) \
	     powersave.tex

CLEANFILES = $(man_MANS)

if DOCS_ENABLED

all:
	LANG=en_US makeinfo --html -o$(top_builddir)/docs/html $(srcdir)/powersave.tex; \
	LANG=en_US makeinfo --html --no-split -o$(top_builddir)/docs/powersave.html $(srcdir)/powersave.tex
	LANG=en_US lynx -dump -width=100 -nolist $(top_builddir)/docs/powersave.html > $(top_builddir)/docs/powersave_manual.txt


install-exec-hook:
		$(INSTALL_PROGRAM) -m 755 -D -d $(DESTDIR)/$(docdir)
		$(INSTALL_PROGRAM) -m 644 -D $(top_builddir)/docs/powersave.html $(DESTDIR)/$(docdir)/powersave_manual.html
		$(INSTALL_PROGRAM) -m 644 -D $(top_builddir)/docs/powersave_manual.txt $(DESTDIR)/$(docdir)/powersave_manual.txt
# The one big html manual file should be enough. 
# Splitted html files are generated (first makeinfo line above), but are only for
# upload to sourceforge powersave docu homepage
#	$(INSTALL_PROGRAM) -m 644 -D -d $(docdir)/$(docdir)/powersave
#	$(INSTALL_PROGRAM) -m 644 -D $(top_builddir)/docs/powersave/* $(DESTDIR)/$(docdir)/powersave

CLEANFILES += powersave_manual.txt powersave.html html/*

uninstall-local:
		rm $(DESTDIR)/$(docdir)/powersave_manual.txt
		rm $(DESTDIR)/$(docdir)/powersave_manual.html

endif