updated makefile and readme

This commit is contained in:
2024-11-03 12:00:16 +01:00
parent 420c3503c2
commit fc8332b8f4
2 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,5 @@
PLATFORM := $(shell uname)
bonjour:
@echo " ------------------------------------"
@echo "| you can use "make build" or "make run" |"
@ -9,8 +11,11 @@ bonjour:
@echo " || ||"
build:
ifeq ($(PLATFORM),Win32)
go build -o bin/ecoledirecte_api.exe src/*
else
go build -o bin/ecoledirecte_api src/*
endif
run:
go build -o bin/ecoledirecte_api src/*.go
bin/ecoledirecte_api
go run src/*