diff --git a/Makefile b/Makefile index 84f665b..7c50f25 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file + go run src/* \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d9d1add --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# EcoleDirecte API +Une interface simple pour récupérer son calendrier + +# Lancer le programme +Il vous suffit d'installer [make](https://www.gnu.org/software/make/) et le compilateur [go](https://go.dev/) puis de lancer une des commandes suivantes: + +Pour juste lancer le programme +```sh +make run +``` +Pour le compiler dans un fichier executable +```sh +make build +``` + +# Licence +``` +All Rights Reserved + +Copyright (c) ED API + +Created by Ayabusa + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +``` \ No newline at end of file