瀏覽代碼

Update Makefile with new commands, fixes

- Fixes make clean
- Changes make to make ui
- Generates keys on make install
- Adds make run, make build
tags/v0.1.0
Matt Baer 5 年之前
父節點
當前提交
6867ac07b4
共有 2 個文件被更改,包括 24 次插入15 次删除
  1. +21
    -5
      Makefile
  2. +3
    -10
      README.md

+ 21
- 5
Makefile 查看文件

@@ -1,14 +1,30 @@
GOCMD=go
GOINSTALL=$(GOCMD) install
GOBUILD=$(GOCMD) build
GOTEST=$(GOCMD) test
BINARY_NAME=writefreely

all : local
all : build

build:
cd cmd/writefreely; $(GOBUILD)

test:
$(GOTEST) -v ./...

run:
$(GOINSTALL) ./...
$(BINARY_NAME) --debug

install :
./keys.sh
cd less/; $(MAKE) install $(MFLAGS)

clean :
cd less/; $(MAKE) install $(MFLAGS)
local : force_look
ui : force_look
cd less/; $(MAKE) $(MFLAGS)

clean :
cd less/; $(MAKE) clean $(MFLAGS)
force_look :
true

+ 3
- 10
README.md 查看文件

@@ -76,16 +76,9 @@ Create your database, import the schema, and configure your site [as shown above
Now generate the CSS:

```bash
make install
make # Run this whenever you update your styles
```

Lastly, run the application (you could put this into a quick shell script called `run.sh`)

```bash
#!/bin/bash

go install ./... && writefreely --debug
make install # Generates encryption keys; installs LESS compiler
make ui # Generates CSS (run this whenever you update your styles)
make run # Runs the application
```

## License


Loading…
取消
儲存