add doxygen docs
This commit is contained in:
27
Makefile
27
Makefile
@@ -5,28 +5,39 @@ FILENAME=myshellin
|
||||
SRC=src/myshellin.c src/loop.c src/console_line.c src/array.c src/builtins.c src/launch.c src/utils.c src/redirect.c
|
||||
OBJ=$(SRC:.c=.o)
|
||||
|
||||
all: shell report
|
||||
all: shell doc report
|
||||
|
||||
shell: $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $(FILENAME) $^ $(LDFLAGS)
|
||||
|
||||
doc:
|
||||
# if doxygen is install create the code documentation
|
||||
ifneq (, $(shell which doxygen))
|
||||
doxygen doxygen.conf
|
||||
make -C docs/latex
|
||||
mv docs/latex/refman.pdf refman.pdf
|
||||
endif
|
||||
|
||||
report:
|
||||
# if pdflatex is installed create the report
|
||||
ifneq (, $(shell which pdflatex))
|
||||
make -C doc
|
||||
mv doc/Informe.pdf Informe.pdf
|
||||
make -C report
|
||||
mv report/Informe.pdf Informe.pdf
|
||||
else ifneq (, $(shell which pdftex))
|
||||
make -C doc
|
||||
mv doc/Informe.pdf Informe.pdf
|
||||
make -C report
|
||||
mv report/Informe.pdf Informe.pdf
|
||||
endif
|
||||
|
||||
clean: cleanshell cleanreport
|
||||
clean: cleanshell cleandoc cleanreport
|
||||
|
||||
cleanshell:
|
||||
rm -f src/*.o $(FILENAME)
|
||||
|
||||
cleandoc:
|
||||
rm -rf refman.pdf docs
|
||||
|
||||
cleanreport:
|
||||
make -C doc clean
|
||||
make -C report clean
|
||||
rm -f Informe.pdf
|
||||
|
||||
.PHONY: all shell report clean cleanshell cleanreport
|
||||
.PHONY: all shell doc report clean cleanshell cleandoc cleanreport
|
||||
|
Reference in New Issue
Block a user