diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9139457 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: build + +build: + python3 build.py diff --git a/build.py b/build.py index ff14ab9..633957b 100644 --- a/build.py +++ b/build.py @@ -6,12 +6,12 @@ from package_formatter import PackageFormatter from replacements import make_default_commands def build(build_dir: str): - input_root = Path('.').resolve() + input_root = Path('./packages').resolve() output = input_root / build_dir for file in input_root.rglob('*.pysty'): formatter = PackageFormatter(package_name=file.with_suffix('').name) make_default_commands(formatter) - formatter.format_package(file, input_root / build_dir / str(file.parent.relative_to(input_root))) + formatter.format_package(file, Path('./').resolve() / build_dir / str(file.parent.relative_to(input_root))) if __name__ == "__main__": build('build')