summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-13 10:36:21 +0200
committerPaul Buetow <paul@buetow.org>2024-02-13 10:36:21 +0200
commit94179a7963cfdcd1c61b3630a05dadbdd6a72b02 (patch)
tree356c35e219fb10577419dfbfae1b13e2459a000a /Makefile
parentc66010e29c49bc1a7e955dfd07ec2a5ad506bfc6 (diff)
move program code to internal package - only leave cmd wrapper in ./cmd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d336e2f..c2c7bad 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ bpfbuild:
.PHONY: gobuild
gobuild:
- echo 'package main' > internal/opids.go
+ echo 'package internal' > internal/opids.go
echo >> internal/opids.go
sed -E 's/#define (.*) ([0-9]+)/const \1 = \2/' opids.h >> internal/opids.go
go build -tags netgo -ldflags '-w -extldflags "-static"' -o ioriotng ./cmd/ioriotng/main.go