Makefile
raw| 1 | prefix ?= /usr |
| 2 | tool = hw-probe |
| 3 | tool_dir = $(DESTDIR)$(prefix)/bin |
| 4 | |
| 5 | .PHONY: all |
| 6 | |
| 7 | all: |
| 8 | echo "Nothing to build." |
| 9 | |
| 10 | install: |
| 11 | mkdir -p $(tool_dir) |
| 12 | install -m 755 $(tool).pl $(tool_dir)/$(tool) |
| 13 | |
| 14 | uninstall: |
| 15 | rm -f $(tool_dir)/$(tool) |
| 16 | |
| 17 | clean: |
| 18 | echo "Nothing to clean up." |