Skip to content

Commit

Permalink
make targets for custom formats build
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Wilcsinszky <[email protected]>
  • Loading branch information
pepov committed Jul 26, 2023
1 parent fe54e13 commit 9d2e693
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ conf/config.ini

.DS_Store

formats/custom-impl
go.work*
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@ check: license-cache license-check
go.work:
go work init . ${CUSTOM_FORMATS}

.PHONY:
reinit:
rm -f go.work
@$(MAKE) go.work

.PHONY:
build: go.work
CGO_ENABLED=0 go build -a -o ${BIN}/loggen main.go

.PHONY:
docker-run:
docker build . -t log-generator:local && docker run -p 11000:11000 log-generator:local

${LICENSEI}: ${LICENSEI}_${LICENSEI_VERSION} | ${BIN}
ln -sf $(notdir $<) $@

Expand Down

0 comments on commit 9d2e693

Please sign in to comment.