commit 4f03513fa7a2d3bbe2e773e506a10233cb7d9669 parent d69b31d27d36ebb95c3b4636dcd5e245854f5c39 Author: finwo <finwo@pm.me> Date: Fri, 27 Jan 2023 00:00:43 +0100 Added minimal makefile Diffstat:
| M | Makefile | | | 2 | +- |
| M | README.md | | | 13 | +++++++++++++ |
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -8,7 +8,7 @@ CFLAGS?= default: $(NAME) $(NAME): $(SRC) - cc $(CFLAGS) $(SRC) -o $@ + $(CC) $(CFLAGS) $(SRC) -o $@ .PHONY: install install: $(NAME) diff --git a/README.md b/README.md @@ -4,3 +4,16 @@ USB Reset This repository is a git mirror of Alan Stern's usbreset utility. Origin: https://marc.info/?l=linux-usb&m=121459435621262&w=2 + +Build +----- + +Simple running `make` should build the binary on a posix system + +Install +------- + +Running `sudo make install` will build the binary if it hasn't been so already, +and then install it into `/usr/local/bin` by default. If you want the binary to +be installed somewhere else, pass the `DESTDIR` definition to the command +(default: `/usr/local`).