Skip to content

Commit

Permalink
Update README instructions (and adapt Makefile)
Browse files Browse the repository at this point in the history
  • Loading branch information
spikat committed Nov 21, 2022
1 parent 945516b commit 14e3b91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ build-ebpf:
ebpf/main.c \
-c -o - | llc -march=bpf -filetype=obj -o ebpf/bin/probe.o

build:
build: build-ebpf
go build -o $(NAME) .

build-with-sound:
build-with-sound: build-ebpf
go build -tags libasound -o $(NAME) .

all: build-ebpf build
all: build

clean:
find . -name "*~"|xargs rm -f
Expand All @@ -38,3 +38,6 @@ clean:

run: $(NAME)
sudo ./$(NAME)

run-with-sound: build-with-sound
sudo ./$(NAME)
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ This is just a fun konami code easter egg in ebpf

> make run
And with some sound (requires `libasound2-dev` installed):

> make run-with-sound

## What it does

When you succeed to enter the konami code, it will open the wikipedia page (and may be play a sound, if you have `libasound2-dev` installed).
When you succeed to enter the konami code, it will open the wikipedia page.

0 comments on commit 14e3b91

Please sign in to comment.