Block: First version
[calu.git] / 4_block / Makefile
diff --git a/4_block/Makefile b/4_block/Makefile
new file mode 100644 (file)
index 0000000..4df2863
--- /dev/null
@@ -0,0 +1,22 @@
+SHELL := bash
+
+FILES  = block.tex blockdesc.tex pipeline.png
+FILES += Makefile
+TARGET = block.pdf
+
+PDFGEN = pdflatex --jobname=$(basename $@) $<
+
+all: $(TARGET)
+
+$(TARGET): $(FILES) $(ISA_BUILD)
+       $(PDFGEN)
+       $(PDFGEN)
+       $(PDFGEN)
+
+%.tex: %.ptex gentex.pl
+       ./gentex.pl $<
+
+.PHONY: clean
+
+clan:
+       rm -fr *.aux *.log *.dvi *.pdf *.toc