From 8ed36ac5a27df37029c24430d35dd5e65aab9f81 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 5 Aug 2021 16:17:55 -0300 Subject: Use .git symlink to simplify testing of embedded repositories --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 55d389e..709364c 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,17 @@ manpages = $(manpages.in:.in=) all: $(manpages) src/gistatic check: all src/gistatic.t + rm -f tests/resources/repo-1/.git + rm -f tests/resources/repo-2/.git + ln -s .gitdir tests/resources/repo-1/.git + ln -s .gitdir tests/resources/repo-2/.git ./src/gistatic.t sh aux/assert-catgets.sh src/gistatic.c clean: rm -rf public/ $(manpages) README.*.md CHANGELOG.*.md messages.mo \ - src/gistatic src/gistatic.t vgcore.* + src/gistatic src/gistatic.t vgcore.* \ + tests/resources/repo-1/.git tests/resources/repo-2/.git install: all mkdir -p $(DESTDIR)$(PREFIX)/bin -- cgit v1.2.3