esvsearch: split esv search code into separate program
Requires rewiring the build system to accommodate for two executables. Fixes: https://todo.sr.ht/~jeremy/esv/4
This commit is contained in:
parent
de71043ef1
commit
ec8be68b49
6 changed files with 122 additions and 32 deletions
13
Makefile
13
Makefile
|
@ -6,12 +6,14 @@ DC = ${_DC}
|
|||
CFLAGS = ${_CFLAGS}
|
||||
OBJS = ${_OBJS}
|
||||
|
||||
all: esv
|
||||
all: esv esvsearch
|
||||
|
||||
include config.mk
|
||||
|
||||
esv: ${OBJS}
|
||||
${DC} ${_LDFLAGS} -of=$@ ${OBJS}
|
||||
esv: esv.o ${OBJS}
|
||||
${DC} ${_LDFLAGS} -of=$@ esv.o ${OBJS}
|
||||
esvsearch: esvsearch.o ${OBJS}
|
||||
${DC} ${_LDFLAGS} -of=$@ esvsearch.o ${OBJS}
|
||||
|
||||
.SUFFIXES: .d .o
|
||||
|
||||
|
@ -19,10 +21,11 @@ esv: ${OBJS}
|
|||
${DC} ${CFLAGS} -c $<
|
||||
|
||||
clean:
|
||||
rm -f esv ${OBJS} ${INIOBJS}
|
||||
rm -f esv esvsearch esv.o esvsearch.o ${OBJS}
|
||||
|
||||
install: esv
|
||||
install: esv esvsearch
|
||||
install -Dm755 esv ${DESTDIR}${PREFIX}/bin/esv
|
||||
install -Dm755 esvsearch ${DESTDIR}${PREFIX}/bin/esvsearch
|
||||
install -Dm644 esv.1 ${DESTDIR}${MANPREFIX}/man1/esv.1
|
||||
install -Dm644 esv.conf.5 ${DESTDIR}${MANPREFIX}/man5/esv.conf.5
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue