From 711ec338ceb15531eceffc5c046e7db382686a14 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Tue, 6 Nov 2018 14:34:22 -0300 Subject: [PATCH] seperate targets for program and informe --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5590787..9715102 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ CC=gcc CFLAGS=-Wall -Werror CPPFLAGS+=-Isrc/include #LDFLAGS=-lm -ODIR=obj SRC=src/sort.c OBJ=$(SRC:.c=.o) @@ -18,8 +17,12 @@ ifneq (, $(shell which pdflatex)) mv doc/Informe.pdf Informe.pdf endif -clean: +clean: cleansort cleaninforme + +cleansort: rm -f src/*.o sort Informe.pdf + +cleaninforme: make -C doc clean -.PHONY: all clean informe +.PHONY: all sort informe clean cleansort cleaninforme