add check for pdflatex, if installed generate the informe

This commit is contained in:
Chris Cromer 2018-11-06 14:31:13 -03:00
parent dad7b1ca09
commit e4349fb014
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -6,16 +6,20 @@ ODIR=obj
SRC=src/sort.c SRC=src/sort.c
OBJ=$(SRC:.c=.o) OBJ=$(SRC:.c=.o)
all: sort informe
sort: $(OBJ) sort: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS) $(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f src/*.o sort
informe: informe:
# if pdflatex is installed create the informe
ifneq (, $(shell which pdflatex))
make -C doc make -C doc
mv doc/Informe.pdf Informe.pdf
endif
cleaninforme: clean:
rm -f src/*.o sort Informe.pdf
make -C doc clean make -C doc clean
.PHONY: sort clean informe cleaninforme .PHONY: all clean informe