Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active Dec 26, 2021
Embed
What would you like to do?
GO=go
GOFMT=gofmt
OUTPUT_FILE=control_escuela
.DEFAULT_GOAL=run
run:
# Formateando
${GOFMT} -w .
# Compilando
${GO} build -o ${OUTPUT_FILE}.exe -tags desarrollo
# Ejecutando
./${OUTPUT_FILE}
prod:
# Si vas a compilar para 32 bits, probablemente quieras:
# SET PATH=C:\Go32\go\bin;%PATH% && SET GOROOT=C:\Go32\go\
# Formateando
${GOFMT} -w .
# Compilando
${GO} build -o ${OUTPUT_FILE}_prod_64.exe -tags produccion -ldflags "-H windowsgui"
prod_32:
# Si vas a compilar para 32 bits, probablemente quieras:
# SET PATH=C:\Go32\go\bin;%PATH% && SET GOROOT=C:\Go32\go\
# Formateando
${GOFMT} -w .
# Compilando
${GO} build -o ${OUTPUT_FILE}_prod_32.exe -tags produccion -ldflags "-H windowsgui"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment