Skip to content

Commit 8d2580f

Browse files
committed
Replace make with mage
Fixes #3937
1 parent 06e5633 commit 8d2580f

File tree

5 files changed

+16
-95
lines changed

5 files changed

+16
-95
lines changed

‎.travis.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ matrix:
1313
- go: tip
1414
fast_finish: true
1515
install:
16-
- make vendor
16+
- go get github.com/magefile/mage
17+
- mage vendor
1718
script:
18-
- make hugo-race check
19+
- mage hugoRace
20+
- mage -v check
1921
- ./hugo -s docs/
2022
- ./hugo --renderToMemory -s docs/
2123
before_install:

‎CONTRIBUTING.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ started:
145145
146146
### Build Hugo with Your Changes
147147
148+
**Note:** Hugo uses [mage](https://github.com/magefile/mage) to build.
149+
148150
```bash
149151
cd $HOME/go/src/github.com/gohugoio/hugo
150-
make hugo
152+
mage hugo
151153
# or to install in $HOME/go/bin:
152-
make install
154+
mage install
153155
```
154156

155157
### Updating the Hugo Sources
@@ -160,6 +162,6 @@ well.
160162

161163
```
162164
git pull
163-
make vendor
165+
mage vendor
164166
```
165167

‎Makefile‎

Lines changed: 0 additions & 86 deletions
This file was deleted.

‎appveyor.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
init:
2-
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
32
- set PATH=%PATH%;C:\MinGW\bin;%GOPATH%\bin
43
- go version
54
- go env
@@ -10,8 +9,10 @@ clone_folder: C:\GOPATH\src\github.com\gohugoio\hugo
109
install:
1110
- gem install asciidoctor
1211
- pip install docutils
12+
- go get github.com/magefile/mage
1313

1414
build_script:
15-
- make hugo-race check
15+
- mage hugoRace
16+
- mage -v check
1617
- hugo -s docs/
1718
- hugo --renderToMemory -s docs/

‎snapcraft.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ parts:
2828
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
2929
export PATH=$GOPATH/bin:$PATH
3030
cd $GOPATH/src/github.com/gohugoio/hugo
31-
make vendor
32-
make test
31+
go get github.com/magefile/mage
32+
mage vendor
33+
mage test
3334
rm -f $GOPATH/bin/govendor
35+
rm -f $GOPATH/bin/mage
3436
install: |
3537
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/hugo
3638
after: [go]

0 commit comments

Comments
 (0)