Skip to content

bast/make-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

Data processing pipeline example

This can be used to motivate and teach Makefiles.

Examples

Process one file:

$ cat data/lorem.in | ./count.py | ./plot.py

Process all files:

$ make [-jN]

Makefile

SRCS = $(wildcard data/*.in)

OBJS = $(patsubst %.in,%.tmp,$(SRCS))
OBJS += $(patsubst %.in,%.out,$(SRCS))

all: $(OBJS)

# otherwise intermediate tmp files would be deleted
.PRECIOUS: %.tmp

%.tmp: %.in
	cat $< | ./count.py > $@

%.out: %.tmp
	cat $< | ./plot.py > $@

About

Data processing pipeline example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages