diff options
author | Adam Strzelecki <ono@java.pl> | 2015-12-09 13:28:56 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-12-09 13:32:43 +0100 |
commit | eb6c634475caf35455f4b02acc52e9d53e3fa0b0 (patch) | |
tree | 63e7b35ac0c326d78e9d24806b6868c6aa52ff21 | |
parent | eec06fb3df7a9dc30f758bb1a100b5f1e8e01ab9 (diff) | |
download | gitea-eb6c634475caf35455f4b02acc52e9d53e3fa0b0.tar.gz gitea-eb6c634475caf35455f4b02acc52e9d53e3fa0b0.zip |
Makefile: Do not fail build on missing lessc
This is achieved by adding public/css/gogs.css to special .IGNORE target, which
makes inability to generate/update gogs.css non-fatal and not stopping whole
build process. User is still notified about missing lessc command though, since
inability to update CSS may lead to potential problems:
lessc public/less/gogs.less public/css/gogs.css
make: lessc: No such file or directory
make: [public/css/gogs.css] Error 1 (ignored)
More info at:
https://www.gnu.org/software/make/manual/html_node/Special-Targets.html
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,8 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S') .PHONY: build pack release bindata clean +.IGNORE: public/css/gogs.css + build: $(GENERATED) go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)' cp '$(GOPATH)/bin/gogs' . |