# Copyright (C) 2026  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information

.PHONY: all rust cpp clean

all: run-rust run-cpp

run-rust:
	cd rust && cargo run

run-cpp:
	g++ -o cpp/main cpp/main.cpp -I/usr/include -lebml && ./cpp/main

clean:
	cd rust && cargo clean
	rm -f cpp/main
