1 # Automake rules for 'glilypond'
3 # File position: <groff-source>/contrib/lilypond/glilypond.am
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
10 # Last update: 22 Aug 2015
12 # This file is part of 'glilypond' which is part of 'groff'.
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.
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.
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/>.
27 ########################################################################
28 glilypond_srcdir = $(top_srcdir)/contrib/glilypond
29 bin_SCRIPTS += glilypond
30 man1_MANS += contrib/glilypond/glilypond.1
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
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
49 # create perl executable 'glilypond', being stored into 'bindir'
50 glilypond: $(glilypond_srcdir)/glilypond.pl shdeps.sed
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 \
61 uninstall_groffdirs: uninstall-glilypond-hook
62 uninstall-glilypond-hook:
63 if test -d $(DESTDIR)$(glilyponddir); then \
64 rmdir $(DESTDIR)$(glilyponddir); \
68 ########################################################################
70 ########################################################################
73 # mode: makefile-automake
76 # vim: set filetype=automake textwidth=72: