Browse Source

Adds makefile

master
sloum 2 years ago
parent
commit
e97f78d969
  1. 28
      Makefile
  2. BIN
      tdiv

28
Makefile

@ -0,0 +1,28 @@
GOCMD := go
BINARY := tdiv
PREFIX := /usr/local
EXEC_PREFIX := ${PREFIX}
BINDIR := ${EXEC_PREFIX}/bin
DATAROOTDIR := ${PREFIX}/share
MANDIR := ${DATAROOTDIR}/man
MAN1DIR := ${MANDIR}/man1
.PHONY: build
build:
${GOCMD} build -o ${BINARY}
.PHONY: install
install: install-bin clean
.PHONY: install-bin
install-bin: build
install -d ${DESTDIR}${BINDIR}
install -m 0755 ./${BINARY} ${DESTDIR}${BINDIR}
.PHONY: clean
clean:
${GOCMD} clean
.PHONY: uninstall
uninstall: clean
rm -f ${DESTDIR}${BINDIR}/${BINARY}

BIN
tdiv

Binary file not shown.
Loading…
Cancel
Save