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