mirror of
https://codeberg.org/Codeberg/avatars.git
synced 2023-08-10 21:12:50 +03:00
Makefile not needed
This commit is contained in:
parent
cd0129ab4e
commit
c02c75e2e3
29
Makefile
29
Makefile
@ -1,29 +0,0 @@
|
||||
|
||||
HOSTNAME_FQDN := codeberg.org
|
||||
|
||||
export BUILDDIR := /tmp/build
|
||||
export GOROOT := ${BUILDDIR}/go
|
||||
export GOPATH := ${BUILDDIR}/gitea
|
||||
export PATH := ${GOROOT}/bin:${GOPATH}/bin:${PATH}
|
||||
|
||||
GOTAR = go1.15.6.$(shell uname | tr [:upper:] [:lower:])-amd64.tar.gz
|
||||
ORIGIN = ssh://prlgc.com/git/gogs-gitea
|
||||
|
||||
TARGETS = ${GOPATH}/bin/avatar
|
||||
|
||||
all : ${TARGETS}
|
||||
|
||||
${GOPATH}/bin/avatar : main.go ${GOROOT}/bin/go
|
||||
go build -o $@ $<
|
||||
|
||||
${GOROOT}/bin/go :
|
||||
mkdir -p ${GOROOT}/Downloads
|
||||
wget -c --no-verbose --directory-prefix=${GOROOT}/Downloads https://dl.google.com/go/${GOTAR}
|
||||
tar xfz ${GOROOT}/Downloads/${GOTAR} -C ${BUILDDIR}
|
||||
|
||||
clean :
|
||||
rm -rf ${TARGETS}
|
||||
|
||||
realclean :
|
||||
rm -rf ${BUILDDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user