Skip to content

Commit

Permalink
build and install breakroom
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Nov 12, 2023
1 parent 863b927 commit c12218d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DESTDIR ?= /
PREFIX ?= ${DESTDIR}usr/local

all: zendebug zenexplorer restroom-test
all: zendebug zenexplorer restroom-test breakroom

zenexplorer_sources := main.go zencodeStatements.go delegate.go zenroom.go
zendebug_sources := main.go
Expand All @@ -20,6 +20,7 @@ restroom-test: $(wildcard src/restroom-test/*.go)
breakroom: $(wildcard src/breakroom/*.c)
${CC} -Os -o src/breakroom/breakroom-read \
src/breakroom/main.c src/breakroom/bestline.c
chmod +x src/breakroom/breakroom
cp src/breakroom/breakroom-read src/breakroom/breakroom .

## in case we want to include the binary in the shell script
Expand All @@ -29,7 +30,8 @@ breakroom: $(wildcard src/breakroom/*.c)
# cat src/breakroom/breakroom-read.gz.b64

install:
install zenexplorer zendebug restroom-test ${PREFIX}/bin
-install zenexplorer zendebug restroom-test ${PREFIX}/bin
-install breakroom breakroom-read ${PREFIX}/bin

clean:
rm -f zendebug zenexplorer restroom-test

0 comments on commit c12218d

Please sign in to comment.