aboutsummaryrefslogtreecommitdiffstats
path: root/troff/troff.d/dpost.d/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'troff/troff.d/dpost.d/Makefile.mk')
-rw-r--r--troff/troff.d/dpost.d/Makefile.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/troff/troff.d/dpost.d/Makefile.mk b/troff/troff.d/dpost.d/Makefile.mk
index b2594b800192..3677592b3d20 100644
--- a/troff/troff.d/dpost.d/Makefile.mk
+++ b/troff/troff.d/dpost.d/Makefile.mk
@@ -10,7 +10,7 @@ FLAGS = -I. -I.. -DFNTDIR='"$(FNTDIR)"' -DPSTDIR='"$(PSTDIR)"' $(EUC) \
.c.o:
$(CC) $(_CFLAGS) $(FLAGS) -c $<
-all: dpost
+all: dpost dpost.1
dpost: $(OBJ)
$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o dpost
@@ -22,10 +22,16 @@ install:
$(INSTALL) -c -m 644 dpost.1 $(ROOT)$(MANDIR)/man1/dpost.1
clean:
- rm -f $(OBJ) dpost core log *~
+ rm -f $(OBJ) dpost core log *~ dpost.1
mrproper: clean
+dpost.1: dpost.1.in
+ sed -e 's"/usr/ucblib/doctools/font/devpost/postscript/"$(ROOT)$(PSTDIR)/"' \
+ -e 's"/usr/ucblib/doctools/font"$(ROOT)$(FNTDIR)"' \
+ -e 's"/usr/lib/lp/postscript/"$(ROOT)$(PSTDIR)/"' \
+ -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' dpost.1.in > $@
+
color.o: color.c gen.h ext.h
dpost.o: dpost.c comments.h gen.h path.h ext.h ../dev.h dpost.h ../afm.h \
asciitype.h