Hook xo(1) to the build -- it's like echo, but uses libxo to

support emitting machine-readable output.

Sponsored by:	Juniper Networks, Inc.
This commit is contained in:
Marcel Moolenaar 2014-10-23 23:16:21 +00:00
parent d7790611c1
commit 41019211af
2 changed files with 17 additions and 0 deletions

View File

@ -196,6 +196,7 @@ SUBDIR= alias \
xargs \ xargs \
xinstall \ xinstall \
${_xlint} \ ${_xlint} \
xo \
${_xstr} \ ${_xstr} \
xz \ xz \
xzdec \ xzdec \

16
usr.bin/xo/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $FreeBSD$
LIBXO= ${.CURDIR:H:H}/contrib/libxo
.PATH: ${LIBXO}/xo
PROG= xo
MAN= xo.1
# XXX For xoversion.h
CFLAGS+=-I${LIBXO}/libxo
DPADD= ${LIBXO}
LDADD= -lxo
.include <bsd.prog.mk>