From 70079f0de4d02cbb2a5fa7fe47b9380e53d37aee Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 21 Sep 2025 15:38:34 +0800 Subject: [PATCH] Add Makefile and update README --- Makefile | 31 +++++++++++++++++++++++++++++++ README.md | 4 +++- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..5c3ee4784d6aa0d7b463d851d88bd26ce15894e9 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: MPL-2.0 +# SPDX-FileCopyrightText: 2021-2025 Hare authors +# SPDX-FileCopyrightText: 2025 Runxi Yu + +.POSIX: +.SUFFIXES: +HARE=hare +HAREFLAGS= +HAREDOC=haredoc + +DESTDIR= +PREFIX=/usr/local +SRCDIR=$(PREFIX)/src +HARESRCDIR=$(SRCDIR)/hare +THIRDPARTYDIR=$(HARESRCDIR)/third-party + +all: + @true # no-op + +check: + $(HARE) test + +install: + mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)"/git + install -m644 git/*.ha "$(DESTDIR)$(THIRDPARTYDIR)"/git + install -m644 git/README "$(DESTDIR)$(THIRDPARTYDIR)"/git/README + +uninstall: + rm -rf $(DESTDIR)$(THIRDPARTYDIR)/git + +.PHONY: all check install uninstall diff --git a/README.md b/README.md index bbd4e7bc2b8c708865908cc3f3f560c5b7b3d900..029a0c11e33c0ad11c836ce5f7a121ee736ecf65 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ # hare-git — Git library in pure Hare - Only SHA-256 is supported for now. - Loose objects and packed objects are supported. -- Read-only for now. +- Read-only features have been (kinda) tested; code for writing exists but is + currently unusable because the `zlib` module doesn't have writing facilities + yet... ## Dependencies -- 2.48.1