4bc7b50ff31508212ce10584373f333c5d0b3ce9
[platform/upstream/groff.git] / src / devices / xditview / Makefile.sub
1 # Makefile.sub for `xditview'
2 #
3 # File position: <groff-source>/src/devices/xditview/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 PROG=gxditview$(EXEEXT)
26 MAN1=gxditview.n
27 MLIB=$(LIBM)
28 XLIBS=$(LIBXUTIL)
29 EXTRA_CFLAGS=$(X_CFLAGS) -Dlint
30 EXTRA_LDFLAGS=$(X_LIBS) $(X_PRE_LIBS) -lXaw -lXmu -lXt -lX11 $(X_EXTRA_LIBS)
31 OBJS=\
32   device.$(OBJEXT) \
33   draw.$(OBJEXT) \
34   Dvi.$(OBJEXT) \
35   font.$(OBJEXT) \
36   lex.$(OBJEXT) \
37   page.$(OBJEXT) \
38   parse.$(OBJEXT) \
39   xditview.$(OBJEXT)
40 CSRCS=\
41   $(srcdir)/device.c \
42   $(srcdir)/draw.c \
43   $(srcdir)/Dvi.c \
44   $(srcdir)/font.c \
45   $(srcdir)/lex.c \
46   $(srcdir)/page.c \
47   $(srcdir)/parse.c \
48   $(srcdir)/xditview.c
49 HDRS=\
50   $(srcdir)/device.h \
51   $(srcdir)/Dvi.h \
52   $(srcdir)/DviP.h \
53   $(srcdir)/Menu.h
54 GENHDRS=GXditview-ad.h
55 RM=rm -f
56
57 all depend: $(GENHDRS)
58
59 GXditview-ad.h: $(srcdir)/GXditview.ad
60         @echo Making $@
61         $(SHELL) $(srcdir)/ad2c $(srcdir)/GXditview.ad > $@
62
63 install_data: $(srcdir)/GXditview.ad $(srcdir)/GXditview-color.ad
64         -test -d $(DESTDIR)$(appresdir) \
65           || $(mkinstalldirs) $(DESTDIR)$(appresdir)
66         if test -f $(DESTDIR)$(appresdir)/GXditview; then \
67           mv $(DESTDIR)$(appresdir)/GXditview \
68             $(DESTDIR)$(appresdir)/GXditview.old; \
69         fi
70         if test -f $(DESTDIR)$(appresdir)/GXditview-color; then \
71           mv $(DESTDIR)$(appresdir)/GXditview-color \
72             $(DESTDIR)$(appresdir)/GXditview-color.old; \
73         fi
74         $(INSTALL_DATA) $(srcdir)/GXditview.ad \
75           $(DESTDIR)$(appresdir)/GXditview
76         $(INSTALL_DATA) $(srcdir)/GXditview-color.ad \
77           $(DESTDIR)$(appresdir)/GXditview-color
78
79 uninstall_sub:
80         $(RM) $(DESTDIR)$(appresdir)/GXditview
81         $(RM) $(DESTDIR)$(appresdir)/GXditview-color
82
83 ########################################################################
84 # Emacs settings
85 ########################################################################
86 #
87 # Local Variables:
88 # mode: makefile
89 # End: