2 top_srcdir=@abs_top_srcdir@
4 top_builddir=@abs_top_builddir@
7 version=`cat $(top_srcdir)/VERSION`
8 # No additional number if revision is zero
9 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
11 GROFF_PREFIX = @prefix@
12 GROFF_DATADIR = $(GROFF_PREFIX)/share
13 GROFF_DATAPROGRAMDIR = $(GROFF_DATADIR)/groff
14 GROFF_DATASUBDIR = $(GROFF_DATAPROGRAMDIR)/$(version)$(revision)
15 GROFF_FONTDIR = $(GROFF_DATASUBDIR)/font
16 GROFF_LOCALFONTDIR = $(GROFF_DATAPROGRAMDIR)/site-font
17 GROFF_FONTPATH = $(GROFF_FONTDIR)$(SEP)$(GROFF_LOCALFONTDIR)$(SEP)/usr/lib/font
23 DEPLIBS = XawClientDepLibs
24 #if defined(HPArchitecture) && (OSMajorVersion > 9)
25 LOCAL_LIBRARIES = -L/usr/contrib/X11R6/lib XawClientLibs
27 LOCAL_LIBRARIES = XawClientLibs
30 $(srcdir)/xditview.c \
37 $(srcdir)/XFontName.c \
52 $(srcdir)/xtotroff.c \
53 $(srcdir)/XFontName.c \
59 #if defined(HPArchitecture) && (OSMajorVersion > 9)
61 -I/usr/contrib/X11R6/include \
72 -DFONTPATH=\"$(GROFF_FONTPATH)\" # -DX_NOT_STDC_ENV
74 DEVDIR = $(top_builddir)/font
75 MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
77 #undef ProgramTargetHelper
78 #define ProgramTargetHelper ProgramTargetHelperNoMan
79 ComplexProgramTarget_1(gxditview,$(LOCAL_LIBRARIES),$(MATHLIB))
80 InstallManPageLong($(srcdir)/gxditview,$(MANDIR),gxditview)
81 NormalProgramTarget(xtotroff,$(OBJS2),$(DEPXLIB),$(XLIB), /**/)
83 InstallAppDefaultsLong($(srcdir)/GXditview,GXditview)
85 fonts: xtotroff $(srcdir)/DESC $(srcdir)/FontMap
87 fonts=`sed -e 's/[ ].*//' $(srcdir)/FontMap`; \
88 for dpi in $(DPIS); do \
89 echo Making devX$$dpi; \
90 test -d $(DEVDIR)/devX$$dpi || \
91 $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi; \
92 rm -f $(DEVDIR)/devX$$dpi/DESC; \
93 sed -e "s/res 75/res $$dpi/" $(srcdir)/DESC \
94 >$(DEVDIR)/devX$$dpi/DESC; \
95 (cd $(DEVDIR)/devX$$dpi; \
97 echo DEV=X$$dpi >Makefile.sub; \
98 echo DEVFILES=DESC $$fonts >>Makefile.sub; \
99 $$dir/xtotroff -g -r $$dpi -s 10 $(srcdir)/FontMap); \
100 echo Making devX$$dpi-12; \
101 test -d $(DEVDIR)/devX$$dpi-12 || \
102 $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi-12; \
103 rm -f $(DEVDIR)/devX$$dpi-12/DESC; \
104 sed -e "s/res 75/res $$dpi/" \
105 -e 's/unitwidth 10/unitwidth 12/' $(srcdir)/DESC \
106 >$(DEVDIR)/devX$$dpi-12/DESC; \
107 (cd $(DEVDIR)/devX$$dpi-12; \
108 rm -f Makefile.sub; \
109 echo DEV=X$$dpi-12 >Makefile.sub; \
110 echo DEVFILES=DESC $$fonts >>Makefile.sub; \
111 $$dir/xtotroff -g -r $$dpi -s 12 $(srcdir)/FontMap); \
114 GXditview-ad.h: $(srcdir)/GXditview.ad
115 /bin/sh $(srcdir)/ad2c $(srcdir)/GXditview.ad >GXditview-ad.h
118 -rm -f junk tmp grot old Makefile Imakefile $(srcdir)/gxditview._man