head	1.2;
access;
symbols
	pre-1_16:1.1.1.1
	start:1.1.1.1
	wlemb:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2000.03.03.21.46.30;	author wlemb;	state dead;
branches;
next	1.1;

1.1
date	2000.02.06.09.38.57;	author wlemb;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.02.06.09.38.57;	author wlemb;	state Exp;
branches;
next	;


desc
@@


1.2
log
@

Replacing Imakefile with Imakefile.in.
@
text
@GROFF_LIBDIR = /usr/local/share/groff
GROFF_FONTDIR = $(GROFF_LIBDIR)/font
GROFF_FONTPATH = .:$(GROFF_FONTDIR):/usr/local/lib/font:/usr/lib/font
DPIS = 75 100

PROGRAMS = gxditview xtotroff
DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
SRCS1 = xditview.c Dvi.c draw.c font.c lex.c page.c \
        parse.c XFontName.c DviChar.c device.c
OBJS1 = xditview.o Dvi.o draw.o font.o lex.o page.o \
        parse.o XFontName.o DviChar.o device.o
SRCS2 = xtotroff.c XFontName.c DviChar.c
OBJS2 = xtotroff.o XFontName.o DviChar.o
INCLUDES = -I$(TOOLKITSRC) -I$(TOP)
MATHLIB = -lm
DEFINES = $(SIGNAL_DEFINES) -DFONTPATH=\"$(GROFF_FONTPATH)\" # -DX_NOT_STDC_ENV

DEVDIR = ../../font
MKINSTALLDIRS = ../../mkinstalldirs

ComplexProgramTarget_1(gxditview,$(LOCAL_LIBRARIES),$(MATHLIB))
NormalProgramTarget(xtotroff,$(OBJS2),$(DEPXLIB),$(XLIB), /**/)

InstallAppDefaults(GXditview)

fonts: xtotroff DESC FontMap
	@@dir=`pwd`; \
	fonts=`sed -e 's/[	 ].*//' FontMap`; \
	for dpi in $(DPIS); do \
	  echo Making devX$$dpi; \
	  test -d $(DEVDIR)/devX$$dpi || \
	    $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi; \
	  rm -f $(DEVDIR)/devX$$dpi/DESC; \
	  sed -e "s/res 75/res $$dpi/" DESC >$(DEVDIR)/devX$$dpi/DESC; \
	  (cd $(DEVDIR)/devX$$dpi; \
	  rm -f Makefile.sub; \
	  echo DEV=X$$dpi >Makefile.sub; \
	  echo DEVFILES=DESC $$fonts >>Makefile.sub; \
	  $$dir/xtotroff -g -r $$dpi -s 10 $$dir/FontMap); \
	  echo Making devX$$dpi-12; \
	  test -d $(DEVDIR)/devX$$dpi-12 || \
	    $(MKINSTALLDIRS) $(DEVDIR)/devX$$dpi-12; \
	  rm -f $(DEVDIR)/devX$$dpi-12/DESC; \
	  sed -e "s/res 75/res $$dpi/" -e 's/unitwidth 10/unitwidth 12/' DESC \
	    >$(DEVDIR)/devX$$dpi-12/DESC; \
	  (cd $(DEVDIR)/devX$$dpi-12; \
	  rm -f Makefile.sub; \
	  echo DEV=X$$dpi-12 >Makefile.sub; \
	  echo DEVFILES=DESC $$fonts >>Makefile.sub; \
	  $$dir/xtotroff -g -r $$dpi -s 12 $$dir/FontMap); \
	done

GXditview-ad.h: GXditview.ad
	/bin/sh ad2c GXditview.ad >GXditview-ad.h

extraclean: clean
	-rm -f junk tmp grot old Makefile

FORCE:
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@groff pre-1.16 with new directory structure
@
text
@@
