1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-05 17:40:26 +00:00

Allow changing the wiki path for make

For example, bouncepaw uses ~/src, I use ~/Code and ~/sources. Many
other people use different prefixes.
This commit is contained in:
Umar Getagazov 2021-10-26 12:45:28 +07:00
parent 9cd3bd20a9
commit e2f228a732
3 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
mycorrhiza
config.mk

View File

@ -1,13 +1,15 @@
WIKI=~/src/example-wiki
.POSIX:
include config.example.mk
include config.mk
run: build
./mycorrhiza ${WIKI}
./mycorrhiza ${WIKIPATH}
config_run: build
./mycorrhiza ${WIKI}
./mycorrhiza ${WIKIPATH}
devconfig_run: build
./mycorrhiza ${WIKI}
./mycorrhiza ${WIKIPATH}
build:
go generate

1
config.example.mk Normal file
View File

@ -0,0 +1 @@
WIKIPATH=~/src/example-wiki