Просмотр исходного кода

Add a clean-docs target to the Makefile

Loïc Hoguin 13 лет назад
Родитель
Сommit
bc2d53d2a5
1 измененных файлов с 9 добавлено и 3 удалено
  1. 9 3
      Makefile

+ 9 - 3
Makefile

@@ -15,14 +15,20 @@ deps:
 app: deps
 	@$(REBAR) compile
 
-docs:
-	@$(REBAR) doc skip_deps=true
-
 clean:
 	@$(REBAR) clean
 	rm -f test/*.beam
 	rm -f erl_crash.dump
 
+docs: clean-docs
+	@$(REBAR) doc skip_deps=true
+
+clean-docs:
+	rm -f doc/*.css
+	rm -f doc/*.html
+	rm -f doc/*.png
+	rm -f doc/edoc-info
+
 # Tests.
 
 deps/proper: