1# 2# avrdude - A Downloader/Uploader for AVR device programmers 3# Copyright (C) 2003 Theodore A. Roth <troth@openavr.org> 4# 5# This program is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2 of the License, or 8# (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program. If not, see <http://www.gnu.org/licenses/>. 17# 18 19# 20# $Id: Makefile.am 1107 2012-11-20 14:03:50Z joerg_wunsch $ 21# 22 23GENERATED_TEXINFOS = \ 24 $(builddir)/programmers.texi \ 25 $(builddir)/parts.texi \ 26 $(builddir)/programmer_types.texi \ 27 $(builddir)/version.texi 28 29CLEANFILES = \ 30 $(GENERATED_TEXINFOS) \ 31 $(builddir)/stamp-vti 32 33info_TEXINFOS = avrdude.texi 34 35EXTRA_DIST = \ 36 parts_comments.txt 37 38all-local: info html ps pdf 39 40html: avrdude-html/avrdude.html 41 42avrdude-html/avrdude.html: $(srcdir)/$(info_TEXINFOS) $(GENERATED_TEXINFOS) 43 texi2html -split_node $(srcdir)/$(info_TEXINFOS) 44 if [ -e ./avrdude.html -o -e ./avrdude_1.html ]; then \ 45 mkdir -p avrdude-html ; \ 46 mv -f *.html avrdude-html ; \ 47 else \ 48 mv -f avrdude avrdude-html; \ 49 fi; 50 51$(builddir)/avrdude.info: $(GENERATED_TEXINFOS) 52$(builddir)/avrdude.dvi: $(GENERATED_TEXINFOS) 53$(builddir)/avrdude.pdf: $(GENERATED_TEXINFOS) 54 55# if it does not exist make this first 56../avrdude$(EXEEXT): 57 $(MAKE) -C .. avrdude$(EXEEXT) 58 59$(builddir)/programmers.texi: ../avrdude$(EXEEXT) ../avrdude.conf Makefile 60 ../avrdude$(EXEEXT) -C ../avrdude.conf -c \? 2>&1 \ 61 | $(AWK) '$$2 ~ /^=$$/ {printf("@item @code{%s} @tab %s\n",$$1,gensub("[^=]+=[ \t]*","",1))}' \ 62 | sed "s# *,\? *<\?\(http://[^ \t>]*\)>\?#,@*\n@url{\1}#g" \ 63 >programmers.texi 64 65$(builddir)/programmer_types.texi: ../avrdude$(EXEEXT) ../avrdude.conf Makefile 66 ../avrdude$(EXEEXT) -C ../avrdude.conf -c \?type 2>&1 \ 67 | $(AWK) '$$2 ~ /^=$$/ {printf("@item @code{%s} @tab %s\n",$$1,gensub("[^=]+=[ \t]*","",1))}' \ 68 | sed "s#<\?\(http://[^ \t,>]*\)>\?#@url{\1}#g" \ 69 >programmer_types.texi 70 71$(builddir)/parts.texi: ../avrdude$(EXEEXT) ../avrdude.conf parts_comments.txt Makefile 72 ../avrdude$(EXEEXT) -C ../avrdude.conf -p \? 2>&1 \ 73 | $(AWK) '$$2 ~ /^=$$/ {printf("@item @code{%s} @tab %s\n",$$1,$$3)}' \ 74 | sed -e "`sed 's:\([^ \t]*\)[ \t]*\(.*\):s/\1$$/\1 \2/g:g' <parts_comments.txt`" \ 75 >parts.texi 76 77clean-local: 78 rm -rf avrdude-html *.info 79 80install-data-local: install-docs 81 82install-docs: html ps pdf 83 $(mkinstalldirs) $(DOC_INST_DIR) 84 $(INSTALL_DATA) avrdude.ps $(DOC_INST_DIR)/avrdude.ps 85 $(INSTALL_DATA) avrdude.pdf $(DOC_INST_DIR)/avrdude.pdf 86 $(mkinstalldirs) $(DOC_INST_DIR)/avrdude-html 87 @list=`echo avrdude-html/*.html`; \ 88 for file in $$list; \ 89 do \ 90 $(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file; \ 91 done 92 93uninstall-local: 94 rm -rf $(DOC_INST_DIR) 95