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