aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c9473f0a..9eaddb20 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ pack:
release: build pack
-generate: $(ASSETS_GENERATED)
+generate: clean $(ASSETS_GENERATED)
internal/assets/conf/conf_gen.go: $(CONF_FILES)
-rm -f $@
@@ -59,7 +59,7 @@ internal/assets/public/public_gen.go: $(PUBLIC_FILES)
go generate internal/assets/public/public.go
gofmt -s -w $@
-less: public/css/gogs.min.css
+less: clean public/css/gogs.min.css
public/css/gogs.min.css: $(LESS_FILES)
@type lessc >/dev/null 2>&1 && lessc --clean-css --source-map "public/less/gogs.less" $@ || echo "lessc command not found or failed"