diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-27 00:05:53 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-27 00:05:53 -0500 |
| commit | 7de445a553e3e72df1f79c796dbc338a6581fc2b (patch) | |
| tree | 596740a7f845b9bee716e30d668cdced5138ac6f /Makefile | |
| parent | abdc08fc17026ef0973dcb68cc6d9e17acc8315b (diff) | |
Add makefile for easy installation
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..63779dd --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +BINS :=tf2_watch + +ifeq ($(PREFIX),) + PREFIX := /usr/local +endif + +ifeq ($(BINDIR),) + BINDIR := /bin +endif + +install: + mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/ + for bin in $(BINS); do \ + install -m 755 $$bin $(DESTDIR)$(PREFIX)$(BINDIR)/; \ + done + +uninstall: + for bin in $(BINS); do \ + rm -rf $(DESTDIR)$(BINDIR)/$$bin; \ + done |
