aboutsummaryrefslogtreecommitdiffstats
path: root/ptx/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/Makefile.mk')
-rw-r--r--ptx/Makefile.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/ptx/Makefile.mk b/ptx/Makefile.mk
index dda3ba05f725..50ca8460c7b0 100644
--- a/ptx/Makefile.mk
+++ b/ptx/Makefile.mk
@@ -5,7 +5,7 @@ FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC) -I../include
.c.o:
$(CC) $(_CFLAGS) $(FLAGS) -c $<
-all: ptx
+all: ptx ptx.1
ptx: $(OBJ)
$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o ptx
@@ -18,6 +18,12 @@ install:
$(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign
clean:
- rm -f $(OBJ) ptx core log *~
+ rm -f $(OBJ) ptx core log *~ ptx.1
mrproper: clean
+
+ptx.1: ptx.1.in
+ sed -e "s'/usr/5bin/sort'`which sort`'" \
+ -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(BINDIR)/"' \
+ -e 's"/usr/ucblib/"$(ROOT)$(LIBDIR)/"' \
+ ptx.1.in > $@