Commits

Antoine Pietri committed 1e461f2

some Makefile fixes -> compiling tarball

Comments (0)

Files changed (1)

 NAME := blaise
-FILES := AUTHORS ast.mli blaise.ml eval.ml lexer.ml Makefile parser.ml\
-	prettyprint.ml parser/parser.mly parser/lexer.mll
+DEPS := AUTHORS ast.mli blaise.ml eval.ml lexer.ml Makefile parser.ml\
+	prettyprint.ml stdlib.ml
+FILES := parser/parser.mly parser/lexer.mll
 
 LOGIN := pietri_a
 RENDU := ${LOGIN}-mpoc2012
 	-F "GROUPE=${GROUPE}" -F "MAX_FILE_SIZE=2097152" -F "UPLOADED=DONE"
 URL := http://rendu.infoprepa.epita.fr/EPITA2016/index.php?TP=20130107
 
-all: ${FILES}
-	ocamlbuild ${NAME}.native
+all: ${DEPS}
+	ocamlbuild -no-hygiene ${NAME}.native
 	cp ${NAME}.native ${NAME}
 	ocamlbuild -clean
 
 blaise: all
 
-rendu: ${FILES}
+rendu: ${DEPS} ${FILES} 
 	@echo -n "Making tarball ${TARBALL}… "
 	@mkdir ${RENDU}
-	@for f in ${FILES}; do cp $$f ${RENDU}; done
+	@for f in ${DEPS} ${FILES}; do cp $$f ${RENDU}; done
 	@tar -cjf ${TARBALL} ${RENDU}
 	@rm -rf ${RENDU}
 	@echo "done !"