seperate targets for program and informe

This commit is contained in:
Chris Cromer 2018-11-06 14:34:22 -03:00
parent e4349fb014
commit 711ec338ce
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -2,7 +2,6 @@ CC=gcc
CFLAGS=-Wall -Werror CFLAGS=-Wall -Werror
CPPFLAGS+=-Isrc/include CPPFLAGS+=-Isrc/include
#LDFLAGS=-lm #LDFLAGS=-lm
ODIR=obj
SRC=src/sort.c SRC=src/sort.c
OBJ=$(SRC:.c=.o) OBJ=$(SRC:.c=.o)
@ -18,8 +17,12 @@ ifneq (, $(shell which pdflatex))
mv doc/Informe.pdf Informe.pdf mv doc/Informe.pdf Informe.pdf
endif endif
clean: clean: cleansort cleaninforme
cleansort:
rm -f src/*.o sort Informe.pdf rm -f src/*.o sort Informe.pdf
cleaninforme:
make -C doc clean make -C doc clean
.PHONY: all clean informe .PHONY: all sort informe clean cleansort cleaninforme