* configure.ac: Add --enable-versioned-doc option and set DOC_INST_DIR.
* doc/Makefile.am: Add rules to install docs in DOC_INST_DIR. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@267 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
290e07cc44
commit
6231171dad
|
@ -59,6 +59,26 @@ AC_CHECK_FUNCS([memset select strcasecmp strdup strerror strncasecmp strtol strt
|
||||||
|
|
||||||
# Checks for misc stuff.
|
# Checks for misc stuff.
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[versioned-doc],
|
||||||
|
AC_HELP_STRING(
|
||||||
|
[--enable-versioned-doc],
|
||||||
|
[install docs in directory with version name (default)]),
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) versioned_doc=yes ;;
|
||||||
|
no) versioned_doc=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for versioned-doc option) ;;
|
||||||
|
esac],
|
||||||
|
[versioned_doc=yes])
|
||||||
|
|
||||||
|
if test "$versioned_doc" = "yes"; then
|
||||||
|
DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude-$(VERSION)'
|
||||||
|
else
|
||||||
|
DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude'
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(DOC_INST_DIR, $DOC_INST_DIR)
|
||||||
|
|
||||||
# Find the parallel serial device files based on target system
|
# Find the parallel serial device files based on target system
|
||||||
# If a system doesn't have a PC style parallel, mark it as unknown.
|
# If a system doesn't have a PC style parallel, mark it as unknown.
|
||||||
case $target in
|
case $target in
|
||||||
|
|
|
@ -32,3 +32,19 @@ html:
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
rm -rf avrdude-html *.info
|
rm -rf avrdude-html *.info
|
||||||
|
|
||||||
|
install-data-local: install-docs
|
||||||
|
|
||||||
|
install-docs: html ps pdf
|
||||||
|
$(mkinstalldirs) $(DOC_INST_DIR)
|
||||||
|
$(INSTALL_DATA) avrdude.ps $(DOC_INST_DIR)/avrdude.ps
|
||||||
|
$(INSTALL_DATA) avrdude.pdf $(DOC_INST_DIR)/avrdude.pdf
|
||||||
|
$(mkinstalldirs) $(DOC_INST_DIR)/avrdude-html
|
||||||
|
@list=`echo avrdude-html/*.html`; \
|
||||||
|
for file in $$list; \
|
||||||
|
do \
|
||||||
|
$(INSTALL_DATA) $$file $(DOC_INST_DIR)/$$file; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
rm -rf $(DOC_INST_DIR)
|
||||||
|
|
Loading…
Reference in New Issue