Commit bd86c858 authored by Radovan Bast's avatar Radovan Bast
Browse files

refactor Makefile

parent a7dc2367
......@@ -10,15 +10,13 @@ RESDIR := results
# all source files (book texts)
SRCS = $(wildcard $(SRCDIR)/*.txt)
# all generated files
OBJS = $(patsubst $(SRCDIR)/%.txt,$(TMPDIR)/%.dat,$(SRCS))
OBJS += $(patsubst $(SRCDIR)/%.txt,$(RESDIR)/%.png,$(SRCS))
OBJS += $(RESDIR)/results.txt
# all intermediate data files
DATA = $(patsubst $(SRCDIR)/%.txt,$(TMPDIR)/%.dat,$(SRCS))
all: $(OBJS)
# all images
IMAGES = $(patsubst $(SRCDIR)/%.txt,$(RESDIR)/%.png,$(SRCS))
all: $(DATA) $(IMAGES) $(RESDIR)/results.txt
$(TMPDIR)/%.dat: $(SRCDIR)/%.txt source/
python source/ $< $@
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