1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-10 20:56:07 +02:00

Add Makefile

This commit is contained in:
Adnan Maolood 2020-11-01 20:51:43 -05:00
parent c3d0748d27
commit fbe8122ebd
3 changed files with 39 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
kiln

32
Makefile Normal file
View File

@ -0,0 +1,32 @@
.POSIX:
.SUFFIXES:
VERSION=0.0.0
PREFIX?=/usr/local
GO?=go
GOFLAGS?=
GOSRC!=find . -name '*.go'
GOSRC+=go.mod go.sum
all: kiln
kiln: $(GOSRC)
$(GO) build $(GOFLAGS) \
-ldflags "-X main.Prefix=$(PREFIX) \
-X main.ShareDir=$(SHAREDIR) \
-X main.Version=$(VERSION)" \
-o $@
clean:
rm -f kiln
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m755 kiln $(DESTDIR)$(PREFIX)/bin
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/bin/kiln
.PHONY: all clean install uninstall

View File

@ -12,14 +12,14 @@ A simple static site generator for Gemini.
## Installation
```
go install
```
First install Go version 1.15 or later.
Then compile:
$ make
# make install
## Usage
```
kiln
```
kiln
For more information, consult the [wiki](https://man.sr.ht/~adnano/kiln/).