* ChangeLog: Point reader to the CHANGELOG file.

* Makefile.am (EXTRA_DIST): Rename avrdude.conf.sample to avrdude.conf.in.
	Remove avrdude.conf and distclean-local rules.
	Add install-exec-local and backup-avrdude-conf rules.
* avrdude.conf.in:
	Set default_parallel to "@DEFAULT_PAR_PORT@" for autoconf expansion.
	Set default_serial to "@DEFAULT_SER_PORT@" for autoconf expansion.
* configure.ac: Add call to AC_CANONICAL_{BUILD,HOST,TARGET} macros.
	Set DEFAULT_PAR_PORT and DEFAULT_SER_PORT based on $host.
	Add copyright header.
	Define avrdude_version so AC_INIT and AM_INIT_AUTOMAKE are sure
	to get the same version.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@238 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Theodore A. Roth
2003-02-25 00:57:27 +00:00
parent 265a6b1989
commit e1fec80b10
4 changed files with 90 additions and 10 deletions

View File

@@ -21,7 +21,7 @@
# $Id$
#
EXTRA_DIST = avrdude.1 avrdude.pdf avrdude.conf.sample bootstrap
EXTRA_DIST = avrdude.1 avrdude.pdf avrdude.conf.in bootstrap
AM_YFLAGS = -d
@@ -63,8 +63,12 @@ man_MANS = avrdude.1
sysconf_DATA = avrdude.conf
avrdude.conf: avrdude.conf.sample
cp $(srcdir)/avrdude.conf.sample $@
install-exec-local: backup-avrdude-conf
distclean-local:
rm -rf avrdude.conf
# This will get run before the config file is installed.
backup-avrdude-conf:
@echo "Backing up avrdude.conf in ${DESTDIR}${sysconfdir}"
@if test -e ${DESTDIR}${sysconfdir}/avrdude.conf; then \
cp -pR ${DESTDIR}${sysconfdir}/avrdude.conf \
${DESTDIR}${sysconfdir}/avrdude.conf.bak; \
fi