Skip to content

Commit

Permalink
chore: add a Makefile for common tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Aug 24, 2024
1 parent 8146c1a commit 6d024c2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SCENARIOS=$(shell ls bin/tests/scenarios)
LANGUAGE=java
SUFFIX=.java
LOG_LEVEL=debug

run_merge_on_dir:
cargo run -- merge --left-path=$(DIR)/left$(SUFFIX) --base-path=$(DIR)/base$(SUFFIX) --right-path=$(DIR)/right$(SUFFIX) --merge-path=$(DIR)/merge.output$(SUFFIX) --log-level=$(LOG_LEVEL) --language=$(LANGUAGE)

run_diff:
cargo run -- diff --left-path=$(LEFT_PATH) --right-path=$(RIGHT_PATH) --language=$(LANGUAGE) --log-level=$(LOG_LEVEL)

rebuild_snapshots:
for SCENARIO in $(SCENARIOS); do \
make run_merge_on_dir DIR=bin/tests/scenarios/$$SCENARIO; \
done

0 comments on commit 6d024c2

Please sign in to comment.