Permalink
Browse files

Makefile cleanup.

  • Loading branch information...
1 parent 079fd1d commit 3ca67b520a260178bee2570937ca4faa9cf5f037 @akrennmair akrennmair committed with Mar 9, 2010
Showing with 8 additions and 4 deletions.
  1. +8 −4 Makefile
View
12 Makefile
@@ -1,9 +1,10 @@
CC=gcc
CFLAGS+=-g -std=c99 -Wall -Wextra -pedantic -pipe
LDFLAGS+=-Wl,-lrt
+RM=rm -f
# Phony targets.
-.PHONY: all expose clean clean-texincludes mrproper
+.PHONY: all expose clean clean-texincludes distclean
# Top-level documents.
DOCS = expose thesis
@@ -39,8 +40,11 @@ thesis: thesis.pdf
# Remove temporary TeX and C files.
clean:
# Remove aux files from PDF generation.
- rm -f $(foreach stem,$(DOCS),$(foreach ext,aux log out pdf,$(stem).$(ext)))
+ $(RM) $(foreach stem,$(DOCS),$(foreach ext,aux log out pdf,$(stem).$(ext)))
# Remove weaved thesis TeX source.
- rm -f thesis.tex
+ $(RM) thesis.tex
# Remove tangled C sources.
- rm -f $(addsuffix .c,$(BINS))
+ $(RM) $(addsuffix .c,$(BINS))
+
+distclean: clean
+ $(RM) $(BINS)

0 comments on commit 3ca67b5

Please sign in to comment.