Refactoring Makefile.
This commit is contained in:
14
Makefile
14
Makefile
@@ -2,24 +2,26 @@
|
|||||||
SHELL=C:/windows/system32/cmd.exe
|
SHELL=C:/windows/system32/cmd.exe
|
||||||
.SHELLFLAGS=/C
|
.SHELLFLAGS=/C
|
||||||
|
|
||||||
TEST_FILES = $(wildcard samples/*.zip)
|
#INPUT_DIR = /Users/vahagn/Downloads/Books
|
||||||
|
INPUT_DIR = samples
|
||||||
|
OUTPUT_DIR = test_out
|
||||||
|
|
||||||
|
TEST_FILES = $(notdir $(wildcard $(INPUT_DIR)/*.zip))
|
||||||
|
|
||||||
PYTHONPATH = $(CURDIR)/modules/ebooklib
|
PYTHONPATH = $(CURDIR)/modules/ebooklib
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: test_samples/algorithms_third_edition_in_c.zip
|
test: test_algorithms_third_edition_in_c.zip
|
||||||
|
#test: test_algorithms_in_c__parts_1_4__fundamentals__data_structures__sorting__searching__third_edition.zip
|
||||||
|
|
||||||
.PHONY: test_all
|
.PHONY: test_all
|
||||||
test_all: $(addprefix test_,$(TEST_FILES))
|
test_all: $(addprefix test_,$(TEST_FILES))
|
||||||
|
|
||||||
|
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
.PHONY: $(addprefix test_,$(TEST_FILES))
|
.PHONY: $(addprefix test_,$(TEST_FILES))
|
||||||
$(addprefix test_,$(TEST_FILES)): test_%:
|
$(addprefix test_,$(TEST_FILES)): test_%:
|
||||||
@echo Testing $*
|
@echo Testing $*
|
||||||
@set PYTHONPATH=$(PYTHONPATH) && python gragir/__main__.py -v $* test_out/$(*F).epub
|
@set PYTHONPATH=$(PYTHONPATH) && python gragir/__main__.py -v $(INPUT_DIR)/$* $(OUTPUT_DIR)/$(*F).epub
|
||||||
|
|
||||||
#python gragir/__main__.py samples/algorithms_third_edition_in_c.zip algorithms_third_edition_in_c.epub
|
|
||||||
|
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
setup:
|
setup:
|
||||||
|
|||||||
Reference in New Issue
Block a user