1 ## Process this file with automake to produce Makefile.in
3 # *** Under VMS, we use *.COM to build, not
4 # *** this makefile. However, we need this file in order for 'make
5 # *** dist' to work properly on Unix machines.
7 # Makefile for GNU CVS VMS distribution.
9 # Copyright (C) 1986-2002 The Free Software Foundation, Inc.
11 # Portions Copyright (C) 1998-2002 Derek Price, Ximbiot <http://ximbiot.com>,
14 # This program is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2, or (at your option)
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
64 ## Zero a few variables for Automake so they may be appended to.
68 ### Maintainer targets
72 stamp-ch: config.h.in $(top_srcdir)/configure
73 @echo "/* This file is generated via a rule in Makefile.am from the" \
75 @echo " * config.h.in file." >>config.tmp
76 @echo " *" >>config.tmp
77 @echo " * *** DO NOT EDIT THIS FILE DIRECTLY ***" >>config.tmp
78 @echo " *" >>config.tmp
79 @echo " * Edit config.h.in instead." >>config.tmp
80 @echo " */" >>config.tmp
81 sed "s/%PACKAGE_VERSION%/$(VERSION)/" <$(srcdir)/config.h.in \
83 @cmp -s config.tmp $(srcdir)/config.h \
84 || (echo "Updating config.h"; \
85 cp config.tmp $(srcdir)/config.h)
87 @cp $(srcdir)/config.h $@
89 DISTCLEANFILES += stamp-ch
92 # for backwards compatibility with the old makefiles
93 realclean: maintainer-clean