home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / groff-1.09-src.lha / src / amiga / groff-1.09 / xditview / Imakefile < prev    next >
Makefile  |  1994-02-21  |  2KB  |  53 lines

  1. GROFF_LIBDIR = /gnu/lib/groff
  2. GROFF_FONTDIR = $(GROFF_LIBDIR)/font
  3. GROFF_FONTPATH = .:$(GROFF_FONTDIR):/local/lib/font
  4. DPIS = 75 100
  5.  
  6. PROGRAMS = gxditview xtotroff
  7. DEPLIBS = XawClientDepLibs
  8. LOCAL_LIBRARIES = XawClientLibs
  9. SRCS1 = xditview.c Dvi.c draw.c font.c lex.c page.c \
  10.         parse.c XFontName.c DviChar.c device.c
  11. OBJS1 = xditview.o Dvi.o draw.o font.o lex.o page.o \
  12.         parse.o XFontName.o DviChar.o device.o
  13. SRCS2 = xtotroff.c XFontName.c DviChar.c
  14. OBJS2 = xtotroff.o XFontName.o DviChar.o
  15. INCLUDES = -I$(TOOLKITSRC) -I$(TOP)
  16. MATHLIB = -lm
  17. DEFINES = $(SIGNAL_DEFINES) -DFONTPATH=\"$(GROFF_FONTPATH)\" # -DX_NOT_STDC_ENV
  18.  
  19. ComplexProgramTarget_1(gxditview,$(LOCAL_LIBRARIES),$(MATHLIB))
  20. NormalProgramTarget(xtotroff,$(OBJS2),$(DEPXLIB),$(XLIB), /**/)
  21.  
  22. InstallAppDefaults(GXditview)
  23.  
  24. fonts: xtotroff DESC FontMap
  25.     @dir=`pwd`; \
  26.     fonts=`sed -e 's/[     ].*//' FontMap`; \
  27.     for dpi in $(DPIS); do \
  28.       echo Making devX$$dpi; \
  29.       test -d ../devX$$dpi || mkdir ../devX$$dpi; \
  30.       rm -f ../devX$$dpi/DESC; \
  31.       sed -e "s/res 75/res $$dpi/" DESC >../devX$$dpi/DESC; \
  32.       (cd ../devX$$dpi; \
  33.       rm -f Makefile.sub; \
  34.       echo DEV=X$$dpi >Makefile.sub; \
  35.       echo DEVFILES=DESC $$fonts >>Makefile.sub; \
  36.       $$dir/xtotroff -g -r $$dpi -s 10 $$dir/FontMap); \
  37.       echo Making devX$$dpi-12; \
  38.       test -d ../devX$$dpi-12 || mkdir ../devX$$dpi-12; \
  39.       rm -f ../devX$$dpi-12/DESC; \
  40.       sed -e "s/res 75/res $$dpi/" -e 's/unitwidth 10/unitwidth 12/' DESC \
  41.         >../devX$$dpi-12/DESC; \
  42.       (cd ../devX$$dpi-12; \
  43.       rm -f Makefile.sub; \
  44.       echo DEV=X$$dpi-12 >Makefile.sub; \
  45.       echo DEVFILES=DESC $$fonts >>Makefile.sub; \
  46.       $$dir/xtotroff -g -r $$dpi -s 12 $$dir/FontMap); \
  47.     done
  48.  
  49. extraclean: clean
  50.     -rm -f junk tmp grot old
  51.  
  52. FORCE:
  53.