blob: 85393590575ef7aa685a9dfc9217d0c47f9cca62 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Makefile.sub for `glilypond' (integration into the `groff' source tree)
# File position: <groff-source>/contrib/lilypond/Makefile.sub
# Copyright (C) 2013
# Free Software Foundation, Inc.
# Written by Werner Lemberg <wl@gnu.org> and
# Bernd Warken <groff-bernd.warken-72@web.de>.
# Last update: 25 Apr 2013
# 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/>.
########################################################################
MAN1=glilypond.n
MOSTLYCLEANADD=glilypond $(MAN1)
# not all make programs have $(RM) predefined.
RM=rm -f
all: glilypond
# files going to lib directory `$(glilypond_dir)'
GLILYPOND_LIB=$(srcdir)/subs.pl \
$(srcdir)/oop_fh.pl \
$(srcdir)/args.pl
GLILYPOND_LIB_=`echo $(GLILYPOND_LIB) | sed 's|$(srcdir)/||g'`
# create perl executable `glilypond', being stored into `bindir'
glilypond: $(srcdir)/glilypond.pl
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)$(revision)|g" \
$(srcdir)/glilypond.pl >$@
chmod +x $@
install_data: glilypond $(GLILYPOND_LIB)
-test -d $(DESTDIR)$(bindir) \
|| $(mkinstalldirs) $(DESTDIR)$(bindir)
$(RM) $(DESTDIR)$(bindir)/$<
$(INSTALL_SCRIPT) glilypond $(DESTDIR)$(bindir)/$<
-test -d $(DESTDIR)$(glilypond_dir) \
|| $(mkinstalldirs) $(DESTDIR)$(glilypond_dir)
for f in $(GLILYPOND_); do \
$(RM) $(DESTDIR)$(glilypond_dir)/$$f; \
$(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(glilypond_dir)/$$f; \
done
uninstall_sub:
$(RM) $(DESTDIR)$(bindir)/glilypond;
for f in $(GLILYPOND_); do \
$(RM) $(DESTDIR)$(glilypond_dir)/$$f; \
done
-rmdir $(DESTDIR)$(glilypond_dir)
########################################################################
# Emacs settings
########################################################################
#
# Local Variables:
# mode: makefile
# End:
|