4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2005 Pekka Riikonen
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
22 AUTODIST_SOURCE = autodist.in makedist.in
23 bin_SCRIPTS = autodist makedist
25 autodistdir = @AUTODISTDIR@
26 autodist_DATA = autodist.conf default COPYING
28 CLEANFILES = $(bin_SCRIPTS)
30 APIVERSION = @APIVERSION@
31 # Install versioned links.
33 @for i in $(bin_SCRIPTS); do \
34 f="`echo $$i | sed '$(transform)'`"; \
35 fv="$$f-$(APIVERSION)"; \
36 rm -f $(DESTDIR)$(bindir)/$$fv; \
37 chmod +x $(DESTDIR)$(bindir)/$$f; \
38 chmod a-w $(DESTDIR)$(bindir)/$$f; \
39 ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
43 @for i in $(bin_SCRIPTS); do \
44 f="`echo $$i|sed '$(transform)'`"; \
45 fv="$$f-$(APIVERSION)"; \
46 rm -f $(DESTDIR)$(bindir)/$$fv; \
49 EXTRA_DIST = $(AUTODIST_SOURCE) default autodist.conf