summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-03-28 11:38:00 -0300
committerEuAndreh <eu@euandre.org>2024-03-28 11:38:00 -0300
commitd947d12794050c02b789479b9af8c4338a4fa9bd (patch)
tree2c378dd9f4f11a9493e61714fee9f2ffb75bfe73
parentMakefile: s/ircd/papo/g (diff)
downloadpapod-d947d12794050c02b789479b9af8c4338a4fa9bd.tar.gz
papod-d947d12794050c02b789479b9af8c4338a4fa9bd.tar.xz
Makefile: s/main.bin/$(NAME).bin/g
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a0dc037..b517e39 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ sources = \
derived-assets = \
$(manpages) \
- main.bin \
+ $(NAME).bin \
tests/papo_test.bin \
side-assets = \
@@ -65,7 +65,7 @@ side-assets = \
all: $(derived-assets)
-main.bin: src/papo.go src/cmd/papo.go
+$(NAME).bin: src/papo.go src/cmd/papo.go
CGO_ENABLED=0 go build -o $@ -v \
-ldflags='-s -w -extldflags "-static"' src/cmd/papo.go
@@ -105,7 +105,7 @@ clean:
install: all
mkdir -p \
'$(DESTDIR)$(BINDIR)'
- cp main.bin '$(DESTDIR)$(BINDIR)'/$(NAME)
+ cp $(NAME).bin '$(DESTDIR)$(BINDIR)'/$(NAME)
for f in $(sources.sql) $(sources.static); do \
dir='$(DESTDIR)$(LIBDDIR)'/"`dirname "$${f#src/}"`"; \
mkdir -p "$$dir"; \
@@ -130,7 +130,7 @@ uninstall:
run-papo: all
rm -f papo.socket
- ./main.bin papo.socket
+ ./$(NAME).bin papo.socket
run-wscat:
rm -f wscat.socket