diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-06-25 02:47:02 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-06-25 02:49:53 -0500 |
commit | 2773179dd571de41e9d619dae110d5fe61d7918e (patch) | |
tree | ea873838cec7eec3cfd7cdc513209e8767b6da0f /Makefile | |
download | ws-2773179dd571de41e9d619dae110d5fe61d7918e.tar.xz ws-2773179dd571de41e9d619dae110d5fe61d7918e.zip |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ea9562c --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +ifeq ($(PREFIX),) + PREFIX := /usr/local +endif + +ifeq ($(BINDIR),) + BINDIR := /bin +endif + +CMD=ws_internal + +make: ws_internal + +ws_internal: main.go wrapper.go + go build -o $@ $^ + +install: + mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/ + install -m 755 $(CMD) $(DESTDIR)$(PREFIX)$(BINDIR)/ + +uninstall: + rm -rf $(DESTDIR)$(PREFIX)$(BINDIR)/$(CMD) + +.PHONY: install uninstall make |