Skip to content

Commit

Permalink
Merge pull request #141 from snprajwal/improve-make
Browse files Browse the repository at this point in the history
chore(crit): improve Makefile rule
  • Loading branch information
snprajwal authored Aug 1, 2023
2 parents 613fd74 + 17e1120 commit d52dc0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crit/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
GO ?= go
CRIU ?= criu
CRIT_SRC := $(shell find . -type f -name '*.go')
CRIT_CLI := cmd/main.go

bin/crit: cmd/main.go
$(GO) build ${GOFLAGS} -o $@ $^
bin/crit: $(CRIT_SRC)
$(GO) build ${GOFLAGS} -o $@ $(CRIT_CLI)

../test/loop/loop:
$(MAKE) -C ../test/loop
Expand Down

0 comments on commit d52dc0d

Please sign in to comment.