aboutsummaryrefslogtreecommitdiffstats
path: root/ptx/Makefile.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-10-06 21:30:09 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-10-06 21:30:09 +0000
commitaa7798c94fa57f6c00fab4393c9fe91334864371 (patch)
tree61b5a60e9c086b1ba44b4718e7666304a8edab6f /ptx/Makefile.mk
downloadsrc-aa7798c94fa57f6c00fab4393c9fe91334864371.tar.gz
src-aa7798c94fa57f6c00fab4393c9fe91334864371.zip
Import heirloom doctools snapshot from git as of 161006vendor/heirloom-doctools/20161006
Notes
Notes: svn path=/vendor/heirloom-doctools/dist/; revision=306788 svn path=/vendor/heirloom-doctools/20161006/; revision=306789; tag=vendor/heirloom-doctools/20161006
Diffstat (limited to 'ptx/Makefile.mk')
-rw-r--r--ptx/Makefile.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/ptx/Makefile.mk b/ptx/Makefile.mk
new file mode 100644
index 000000000000..dfef54161fe5
--- /dev/null
+++ b/ptx/Makefile.mk
@@ -0,0 +1,23 @@
+OBJ = ptx.o
+
+FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC)
+
+.c.o:
+ $(CC) $(CFLAGS) $(WARN) $(CPPFLAGS) $(FLAGS) -c $<
+
+all: ptx
+
+ptx: $(OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o ptx
+
+install:
+ $(INSTALL) -c ptx $(ROOT)$(BINDIR)/ptx
+ $(STRIP) $(ROOT)$(BINDIR)/ptx
+ $(INSTALL) -c -m 644 ptx.1 $(ROOT)$(MANDIR)/man1/ptx.1
+ test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR)
+ $(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign
+
+clean:
+ rm -f $(OBJ) ptx core log *~
+
+mrproper: clean