EcoleDirecte-API/Makefile

21 lines
504 B
Makefile
Raw Permalink Normal View History

2024-11-03 11:00:16 +00:00
PLATFORM := $(shell uname)
2024-11-03 10:40:48 +00:00
bonjour:
@echo " ------------------------------------"
@echo "| you can use "make build" or "make run" |"
@echo " ------------------------------------"
@echo " \\ ^__^"
@echo " \\ (oo)\\_______"
@echo " (__)\\ )\\/\\"
@echo " ||----w |"
@echo " || ||"
build:
2024-11-03 11:00:16 +00:00
ifeq ($(PLATFORM),Win32)
go build -o bin/ecoledirecte_api.exe src/*
else
2024-11-03 10:40:48 +00:00
go build -o bin/ecoledirecte_api src/*
2024-11-03 11:00:16 +00:00
endif
2024-11-03 10:40:48 +00:00
run:
2024-11-03 11:00:16 +00:00
go run src/*