Replacing Imakefile with Imakefile.in.
[s-roff.git] / src / xditview / Imakefile.in
bloba720205619b93a631fc35a677c767f5ac182e032
1 srcdir=@srcdir@
2 top_srcdir=@top_srcdir@
3 VPATH=@srcdir@
4 top_builddir=@top_builddir@
6 GROFF_PREFIX = @prefix@
7 GROFF_DATADIR = $(GROFF_PREFIX)/share
8 GROFF_LIBDIR = $(GROFF_DATADIR)/groff
9 GROFF_FONTDIR = $(GROFF_LIBDIR)/font
10 GROFF_FONTPATH = .:$(GROFF_FONTDIR):/usr/local/lib/font:/usr/lib/font
11 DPIS = 75 100
13 PROGRAMS = \
14   gxditview \
15   xtotroff
16 DEPLIBS = XawClientDepLibs
17 LOCAL_LIBRARIES = XawClientLibs
18 SRCS1 = \
19   $(srcdir)/xditview.c \
20   $(srcdir)/Dvi.c \
21   $(srcdir)/draw.c \
22   $(srcdir)/font.c \
23   $(srcdir)/lex.c \
24   $(srcdir)/page.c \
25   $(srcdir)/parse.c \
26   $(srcdir)/XFontName.c \
27   $(srcdir)/DviChar.c \
28   $(srcdir)/device.c
29 OBJS1 = \
30   xditview.o \
31   Dvi.o \
32   draw.o \
33   font.o \
34   lex.o \
35   page.o \
36   parse.o \
37   XFontName.o \
38   DviChar.o \
39   device.o
40 SRCS2 = \
41   $(srcdir)/xtotroff.c \
42   $(srcdir)/XFontName.c \
43   $(srcdir)/DviChar.c
44 OBJS2 = \
45   xtotroff.o \
46   XFontName.o \
47   DviChar.o
48 INCLUDES = \
49   -I$(TOOLKITSRC) \
50   -I$(TOP)
51 MATHLIB = -lm
52 DEFINES = \
53   $(SIGNAL_DEFINES) \
54   -DFONTPATH=\"$(GROFF_FONTPATH)\" # -DX_NOT_STDC_ENV
56 DEVDIR = $(top_builddir)/font
57 MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
59 ComplexProgramTarget_1(gxditview,$(LOCAL_LIBRARIES),$(MATHLIB))
60 NormalProgramTarget(xtotroff,$(OBJS2),$(DEPXLIB),$(XLIB), /**/)
62 InstallAppDefaults(GXditview)
64 fonts: xtotroff $(srcdir)/DESC $(srcdir)/FontMap
65         @dir=`pwd`; \
66         fonts=`sed -e 's/[       ].*//' $(srcdir)/FontMap`; \
67         for dpi in $(DPIS); do \
68           echo Making devX$$dpi; \
69           test -d $(DEVDIR)/devX$$dpi || \
70             $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi; \
71           rm -f $(DEVDIR)/devX$$dpi/DESC; \
72           sed -e "s/res 75/res $$dpi/" $(srcdir)/DESC \
73             >$(DEVDIR)/devX$$dpi/DESC; \
74           (cd $(DEVDIR)/devX$$dpi; \
75           rm -f Makefile.sub; \
76           echo DEV=X$$dpi >Makefile.sub; \
77           echo DEVFILES=DESC $$fonts >>Makefile.sub; \
78           $$dir/xtotroff -g -r $$dpi -s 10 $(srcdir)/FontMap); \
79           echo Making devX$$dpi-12; \
80           test -d $(DEVDIR)/devX$$dpi-12 || \
81             $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi-12; \
82           rm -f $(DEVDIR)/devX$$dpi-12/DESC; \
83           sed -e "s/res 75/res $$dpi/" \
84               -e 's/unitwidth 10/unitwidth 12/' $(srcdir)/DESC \
85             >$(DEVDIR)/devX$$dpi-12/DESC; \
86           (cd $(DEVDIR)/devX$$dpi-12; \
87           rm -f Makefile.sub; \
88           echo DEV=X$$dpi-12 >Makefile.sub; \
89           echo DEVFILES=DESC $$fonts >>Makefile.sub; \
90           $$dir/xtotroff -g -r $$dpi -s 12 $(srcdir)/FontMap); \
91         done
93 GXditview-ad.h: $(srcdir)/GXditview.ad
94         /bin/sh $(srcdir)/ad2c $(srcdir)/GXditview.ad >GXditview-ad.h
96 extraclean: clean
97         -rm -f junk tmp grot old Makefile Imakefile
99 FORCE: