Commit 02a57620 authored by liziwl's avatar liziwl
Browse files

update makefile

parent 2600c39d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ else
	RM = rm -f
endif

.PHONY: all all-dev clean thesis viewthesis doc viewdoc cls test wordcount FORCE_MAKE
.PHONY: all all-dev clean cleanall distclean thesis viewthesis doc viewdoc cls test wordcount FORCE_MAKE

thesis: $(THESIS).pdf

@@ -55,6 +55,10 @@ cleanall: clean
	-@$(RM) -rf public-test
	-@$(RM) $(PACKAGE).pdf $(THESIS).pdf

distclean: cleanall
	-@$(RM) $(CLSFILE)
	-@$(RM) -r dist

wordcount : $(THESIS).tex
	@if grep -v ^% $< | grep -q '\\documentclass\[[^\[]*english'; then \
		texcount $< -inc -char-only | awk '/total/ {getline; print "英文字符数\t\t\t:",$$4}'; \