8f3a4b7355aee71b3f827963c8b40b9bc8bde051
[platform/upstream/groff.git] / contrib / eqn2graph / Makefile.sub
1 # Copyright (C) 2002-2014
2 #   Free Software Foundation, Inc.
3 #
4 # This file is part of groff.
5 #
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 # for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 # Makefile.sub
20 #
21 MAN1=eqn2graph.n
22 MOSTLYCLEANADD=eqn2graph
23 RM=rm -f
24
25 all: eqn2graph
26
27 eqn2graph: eqn2graph.sh
28         sed -e "s|@g@|$(g)|g" \
29             -e "s|@VERSION@|$(version)$(revision)|" \
30             -e $(SH_SCRIPT_SED_CMD) $(srcdir)/eqn2graph.sh >$@
31         chmod +x $@
32
33 install_data: eqn2graph
34         -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
35         $(RM) $(DESTDIR)$(bindir)/eqn2graph
36         $(INSTALL_SCRIPT) eqn2graph $(DESTDIR)$(bindir)/eqn2graph
37
38 uninstall_sub:
39         $(RM) $(DESTDIR)$(bindir)/eqn2graph
40
41 ########################################################################
42 # Emacs settings
43 ########################################################################
44 #
45 # Local Variables:
46 # mode: makefile
47 # End: