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