commit 8a31d9a3f861fcb52b577999131764925ebd1ebb from: Benjamin Stürz date: Thu Jan 09 12:45:00 2025 UTC add Makefile commit - 83948a69c789c232297ec76388871844c2d78d0f commit + 8a31d9a3f861fcb52b577999131764925ebd1ebb blob - /dev/null blob + 0767032d0b919f03b6ff475b4e353bd34b6393da (mode 644) --- /dev/null +++ Makefile @@ -0,0 +1,17 @@ +PREFIX = /usr/local +SRC != find src -name '*.rs' +CARGO = cargo + +all: bottlefuck + +clean: + rm -f bottlefuck + rm -rf target + +install: bottlefuck + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f bottlefuck ${DESTDIR}${PREFIX}/bin/ + +bottlefuck: ${SRC} + ${CARGO} build --release + cp -f target/release/bottlefuck .