Commit e96d6441 authored by Taddeus Kroes's avatar Taddeus Kroes

Merged Makefile from report with root level.

parent feb72343
BUILD=build/ BUILD=build/
CLEAN=*.pyc src/*.pyc src/optimize/*.pycrm -f parser.out parsetab.py CLEAN=*.pyc src/*.pyc src/optimize/*.pyc parser.out parsetab.py
# Fix pdflatex search path # Fix pdflatex search path
TGT_DIR := TGT_DIR := report
TGT_DOC :=
# Default target is 'all'. The 'build' target is defined here so that all # Default target is 'all'. The 'build' target is defined here so that all
# sub rules.mk can add prerequisites to the 'build' target. # sub rules.mk can add prerequisites to the 'build' target.
all: all:
build: build:
d := tests/ d := report/
include base.mk include base.mk
include $(d)/rules.mk include $(d)/rules.mk
.PHONY: doc d := tests/
include base.mk
include $(d)/rules.mk
all: doc build all: report
clean: clean:
rm -rf $(CLEAN) rm -rf $(CLEAN)
......
RM=rm -rf
all: report.pdf
%.pdf: %.tex
pdflatex $^
pdflatex $^
clean:
$(RM) *.pdf *.aux *.log *.out *.toc *.snm *.nav
\documentclass[10pt,a4paper]{article} \documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc} \usepackage[latin1]{inputenc}
\usepackage{amsmath} \usepackage{amsmath,amsfonts,amssymb,booktabs,graphicx,listings,subfigure}
\usepackage{amsfonts} \usepackage{float,hyperref}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{subfigure}
\usepackage{float}
\usepackage{hyperref}
\title{Peephole Optimizer} \title{Peephole Optimizer}
\author{Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde\"us Kroes \author{Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde\"us Kroes
(6054129)} (6054129)}
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents
\pagebreak \pagebreak
\section{Introduction} \section{Introduction}
...@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0 ...@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0
mult $regA, $regB, 2 -> sll $regA, $regB, 1 mult $regA, $regB, 2 -> sll $regA, $regB, 1
\end{verbatim} \end{verbatim}
\end{document} \end{document}
CLEAN := $(CLEAN) report/*.pdf report/*.aux report/*.log \
report/*.out report/*.toc report/*.snm report/*.nav
report: report/report.pdf
report/%.pdf: report/%.tex
cd report; \
pdflatex report.tex; \
pdflatex report.tex
TESTS=$(wildcard tests/test_*.py) TESTS=$(wildcard tests/test_*.py)
COVERAGE_OUTPUT_DIR := coverage COVERAGE_OUTPUT_DIR := coverage
OMIT := /usr/share/pyshared/*,test*,*__init__.py OMIT := /usr/share/pyshared/*,test*,*__init__.py
CLEAN := $(CLEAN) tests/*.pyc
ifeq ($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage) ifeq ($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
COVERAGE=/usr/bin/python-coverage COVERAGE=/usr/bin/python-coverage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment