Imported Upstream version 1.22.3
[platform/upstream/groff.git] / arch / mingw / Makefile.sub
1 # Copyright (C) 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 WINSCRIPTS=\
22   afmtodit.cmd \
23   chem.cmd \
24   gperl.cmd \
25   gpinyin.cmd \
26   grap2graph.cmd \
27   groffer.cmd \
28   grog.cmd \
29   gropdf.cmd \
30   mmroff.cmd \
31   neqn.cmd \
32   pdfmom.cmd \
33   roff2dvi.cmd \
34   roff2html.cmd \
35   roff2pdf.cmd \
36   roff2ps.cmd \
37   roff2text.cmd \
38   roff2x.cmd
39
40 RM=rm -f
41
42 all: $(make_winscripts)
43 install_data: $(make_install_winscripts)
44 uninstall_sub: $(make_uninstall_winscripts)
45
46 winscripts: $(WINSCRIPTS)
47
48 install_winscripts: $(WINSCRIPTS)
49         -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
50         for f in $(WINSCRIPTS); do \
51           $(RM) $(DESTDIR)$(bindir)/$$f; \
52           $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(bindir)/$$f; \
53         done
54
55 uninstall_winscripts:
56         -for f in $(WINSCRIPTS); do \
57           $(RM) $(DESTDIR)$(bindir)/$$f; \
58         done
59
60 ########################################################################
61 # Emacs settings
62 ########################################################################
63 #
64 # Local Variables:
65 # mode: makefile
66 # End: