Browse Source

Add a clean-docs target to the Makefile

Loïc Hoguin 13 years ago
parent
commit
bc2d53d2a5
1 changed files with 9 additions and 3 deletions
  1. 9 3
      Makefile

+ 9 - 3
Makefile

@@ -15,14 +15,20 @@ deps:
 app: deps
 app: deps
 	@$(REBAR) compile
 	@$(REBAR) compile
 
 
-docs:
-	@$(REBAR) doc skip_deps=true
-
 clean:
 clean:
 	@$(REBAR) clean
 	@$(REBAR) clean
 	rm -f test/*.beam
 	rm -f test/*.beam
 	rm -f erl_crash.dump
 	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.
 # Tests.
 
 
 deps/proper:
 deps/proper: