aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-19 16:53:51 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-19 16:53:51 +0800
commit3a2b2de8141b5843892e64f9c165c1d7afb3724a (patch)
tree198cac94e835085d744b0cd922a48025a94fe480
parent7b5b0709008e51de168947d9058a3e88a5fd3abc (diff)
Makefile: generate Sourcemap for less files
[CI SKIP]
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 06e66d13..5a429975 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ LDFLAGS += -X "gogs.io/gogs/internal/setting.BuildCommit=$(shell git rev-parse H
CONF_FILES := $(shell find conf | sed 's/ /\\ /g')
TEMPLATES_FILES := $(shell find templates | sed 's/ /\\ /g')
PUBLIC_FILES := $(shell find public | sed 's/ /\\ /g')
-LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less)
+LESS_FILES := $(wildcard public/less/*.less)
ASSETS_GENERATED := internal/assets/conf/conf_gen.go internal/assets/templates/templates_gen.go internal/assets/public/public_gen.go
GENERATED := $(ASSETS_GENERATED) public/css/gogs.css
@@ -69,7 +69,7 @@ internal/assets/public/public_gen.go: $(PUBLIC_FILES)
less: public/css/gogs.css
public/css/gogs.css: $(LESS_FILES)
- @type lessc >/dev/null 2>&1 && lessc $< >$@ || echo "lessc command not found, skipped."
+ @type lessc >/dev/null 2>&1 && lessc --source-map "public/less/gogs.less" $@ || echo "lessc command not found or failed"
clean:
go clean -i ./...