Switch to configure and make based build
Also removed excessive use of std.regex in esvapi.d and made it actually compile -_-
This commit is contained in:
parent
7ebc0d7b66
commit
6efe117545
5 changed files with 254 additions and 68 deletions
32
Makefile
32
Makefile
|
@ -1,32 +0,0 @@
|
|||
IMPORT = import
|
||||
PREFIX = /usr/local
|
||||
MANPREFIX = /usr/share/man
|
||||
|
||||
DC = ldc2
|
||||
CFLAGS = -O -I${IMPORT} -release -w
|
||||
OBJS = main.o esvapi.o ini.o
|
||||
|
||||
all: esv
|
||||
|
||||
esv: ${OBJS}
|
||||
${DC} ${CFLAGS} -of$@ ${OBJS}
|
||||
|
||||
# main executable
|
||||
main.o: main.d esvapi.o
|
||||
${DC} ${CFLAGS} -of$@ -c main.d
|
||||
|
||||
esvapi.o: esvapi.d
|
||||
${DC} ${CFLAGS} -of$@ -c esvapi.d
|
||||
|
||||
ini.o: ${IMPORT}/dini/*.d
|
||||
${DC} ${CFLAGS} -of$@ -c ${IMPORT}/dini/*.d
|
||||
|
||||
clean:
|
||||
rm -f esv ${OBJS}
|
||||
|
||||
install: esv
|
||||
install -m755 esv ${DESTDIR}${PREFIX}/bin/esv
|
||||
cp -f esv.1 ${DESTDIR}${MANPREFIX}/man1
|
||||
cp -f esv.conf.5 ${DESTDIR}${MANPREFIX}/man5
|
||||
|
||||
.PHONY: all clean install
|
Loading…
Add table
Add a link
Reference in a new issue