Added SILC Thread Queue API
[silc.git] / apps / autodist / Makefile.am
1 #
2 #  Makefile.am
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2005 Pekka Riikonen
7 #
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.
11 #
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.
16 #
17
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
19
20 SUBDIRS = . doc tests
21
22 AUTODIST_SOURCE = autodist.in makedist.in
23 bin_SCRIPTS = autodist makedist
24
25 autodistdir = @AUTODISTDIR@
26 autodist_DATA = autodist.conf default COPYING
27
28 CLEANFILES = $(bin_SCRIPTS)
29
30 APIVERSION = @APIVERSION@
31 # Install versioned links.
32 install-exec-hook:
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;          \
40         done
41
42 uninstall-hook:
43         @for i in $(bin_SCRIPTS); do                                    \
44           f="`echo $$i|sed '$(transform)'`";                            \
45           fv="$$f-$(APIVERSION)";                                       \
46           rm -f $(DESTDIR)$(bindir)/$$fv;                               \
47         done
48
49 EXTRA_DIST = $(AUTODIST_SOURCE) default autodist.conf