File: Makefile.am

package info (click to toggle)
simulavr 0.1.2.2-6.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 2,756 kB
  • ctags: 3,179
  • sloc: ansic: 19,987; sh: 3,623; python: 3,528; makefile: 406; asm: 308; yacc: 145; lex: 48
file content (133 lines) | stat: -rw-r--r-- 3,956 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#
# $Id: Makefile.am,v 1.13 2003/09/26 22:07:34 troth Exp $
#
###############################################################################
#
# simulavr - A simulator for the Atmel AVR family of microcontrollers.
# Copyright (C) 2001, 2002, 2003  Theodore A. Roth
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
###############################################################################


MAINTAINERCLEANFILES = Makefile.in stamp-vti

CLEANFILES           = *.html *.pdf *.ma *.mas *.ps

EXTRA_DIST           = dox.css dox_html_header dox_html_footer \
                       main.dox

info_TEXINFOS        = simulavr.texi

SUFFIXES             = .pdf

DOC_INST_DIR         = @ac_doc_inst_dir@

all-local: html $(TARGET_PS) $(TARGET_PDF)

# Rule for generating postscript output.
ps: simulavr.ps $(TARGET_DOX_PS)

install-ps: ps $(INSTALL_DOX_PS)
	$(mkinstalldirs) $(DOC_INST_DIR)
	$(INSTALL_DATA) simulavr.ps $(DOC_INST_DIR)/simulavr.ps

# Rule for generating html output.
html: $(info_TEXINFOS) $(TARGET_DOX_HTML)
	mkdir -p html
	texi2html -split_node $(srcdir)/$(info_TEXINFOS)
	mv *.html html
	if test -f html/simulavr.html ; then \
	   cp html/simulavr.html html/index.html ; \
	else \
	   if test -f html/simulavr_toc.html ; then \
	      cp html/simulavr_toc.html html/index.html ; \
	   fi \
	fi

install-html: html $(INSTALL_DOX_HTML)
	$(mkinstalldirs) $(DOC_INST_DIR)/html
	@list='$(wildcard html/*.html)' ; \
	for file in $$list ; do \
	  echo " $(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file"; \
	  $(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file; \
	done

# General rule for installing documentation
install-data-local: install-html install-ps $(INSTALL_PDF)

uninstall-local:
	rm -rf $(DOC_INST_DIR)

clean-local:
	rm -rf html internals_html internals

#
# I'm not generating PDF files by default. pdftex seems to
# generate some warnings I don't like and can't figure out
# how to get rid of. The generated pdf file seems to be alright
# though, so you can still get a pdf file via `make pdf`.
#

# Rule for generating PDF output
pdf: simulavr.pdf $(TARGET_DOX_PDF)

simulavr.pdf: $(info_TEXINFOS)

.texi.pdf:
	texi2pdf $<

install-pdf: pdf $(INSTALL_DOX_PDF)
	$(mkinstalldirs) $(DOC_INST_DIR)
	$(INSTALL_DATA) simulavr.pdf $(DOC_INST_DIR)/simulavr.pdf

#
# Rules for generating documentation with doxygen
#

dox: internals_html internals

internals_html internals:
	doxygen doxygen.config

dox-html: internals_html

dox-pdf: internals
	${MAKE} -C internals pdf
	cp internals/refman.pdf simulavr-internals.pdf

dox-ps: internals
	${MAKE} -C internals ps
	cp internals/refman.ps simulavr-internals.ps

install-dox-html: internals_html
	$(mkinstalldirs) $(DOC_INST_DIR)/internals_html
	@list='$(wildcard internals_html/*.html internals_html/*.css)' ; \
	for file in $$list ; do \
	  echo " $(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file"; \
	  $(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file; \
	done

install-dox-pdf: dox-pdf
	$(mkinstalldirs) $(DOC_INST_DIR)
	$(INSTALL_DATA) internals/refman.pdf $(DOC_INST_DIR)/simulavr-internals.pdf

install-dox-ps: dox-ps
	$(mkinstalldirs) $(DOC_INST_DIR)
	$(INSTALL_DATA) internals/refman.ps $(DOC_INST_DIR)/simulavr-internals.ps

.PHONY: ps pdf dox dox-pdf install-pdf install-html install-ps install-dox-html \
	install-dox-ps install-dox-pdf