Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / glilypond / glilypond.am
1 # Automake rules for 'glilypond'
2
3 # File position: <groff-source>/contrib/lilypond/glilypond.am
4
5 # Copyright (C) 2013-2018 Free Software Foundation, Inc.
6 # Written by Werner Lemberg <wl@gnu.org> and
7 # Bernd Warken <groff-bernd.warken-72@web.de>.
8 # Automake migration by Bertrand Garrigues
9
10 # Last update: 22 Aug 2015
11
12 # This file is part of 'glilypond' which is part of 'groff'.
13
14 # 'groff' is free software; you can redistribute it and/or modify it
15 # under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
18
19 # 'groff' is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22 # General Public License for more details.
23
24 # You should have received a copy of the GNU General Public License
25 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
26
27 ########################################################################
28 glilypond_srcdir = $(top_srcdir)/contrib/glilypond
29 bin_SCRIPTS += glilypond
30 man1_MANS += contrib/glilypond/glilypond.1
31
32 # files going to lib directory '$(glilypond_dir)'
33 # TODO glilypond_dir is subsitued by configure.ac, check if this could be removed
34 glilyponddir = $(glilypond_dir)
35 dist_glilypond_DATA = \
36   contrib/glilypond/subs.pl \
37   contrib/glilypond/oop_fh.pl \
38   contrib/glilypond/args.pl
39
40 EXTRA_DIST += \
41   contrib/glilypond/ChangeLog \
42   contrib/glilypond/ChangeLog.0x \
43   contrib/glilypond/glilypond.1.man \
44   contrib/glilypond/glilypond.pl \
45   contrib/glilypond/README.txt \
46   contrib/glilypond/examples/example.groff
47
48
49 # create perl executable 'glilypond', being stored into 'bindir'
50 glilypond: $(glilypond_srcdir)/glilypond.pl shdeps.sed
51         $(AM_V_GEN)$(RM) $@ \
52         && sed -f "$(SH_DEPS_SED_SCRIPT)" \
53                -e "s|[@]g[@]|$(g)|g" \
54                -e "s|[@]BINDIR[@]|$(DESTDIR)$(bindir)|g" \
55                -e "s|[@]glilypond_dir[@]|$(DESTDIR)$(glilypond_dir)|g" \
56                -e "s|[@]VERSION[@]|$(VERSION)|g" \
57                $(glilypond_srcdir)/glilypond.pl \
58                >$@ \
59         && chmod +x $@
60
61 uninstall_groffdirs: uninstall-glilypond-hook
62 uninstall-glilypond-hook:
63         if test -d $(DESTDIR)$(glilyponddir); then \
64           rmdir $(DESTDIR)$(glilyponddir); \
65         fi
66
67
68 ########################################################################
69 # Editor settings
70 ########################################################################
71 #
72 # Local Variables:
73 # mode: makefile-automake
74 # fill-column: 72
75 # End:
76 # vim: set filetype=automake textwidth=72: