https://github.com/trahay/Generic-Trace-Generator/pull/9

commit d120d572f72923dfca6b8ed66a58788c079f6b63
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Nov 24 00:01:18 2024 +0100

    Add missing dependency
    
    test targets need $(BIN) being created first.
    
    while at it, just factorize the rules.

https://github.com/trahay/Generic-Trace-Generator/pull/10

From 4600ae7e0096c706d62fd62e622fc1aaa64d3890 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Wed, 14 May 2025 13:18:41 +0200
Subject: [PATCH] Add missing dependency

When running make --shuffle=reverse install, we otherwise get

make[3]: *** No rule to make target 'html//index.html', needed by 'install_html'.  Stop.
---
 doc/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/Makefile b/test/Makefile
index 7c0fcbc..70b0d42 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,29 +19,8 @@ all	: dir $(TESTS) $(MPI_TESTS)
 dir	:
 		mkdir -p $(BIN)
 
-testAll		: testAll.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testState	: testState.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testState_parall	: testState_parall.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testEvent_parall	: testEvent_parall.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testEvent_mpi	: testEvent_mpi.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testEvent	: testEvent.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testLink	: testLink.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
-
-testVar		: testVar.c
-		$(CC) $^ -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
+%		: %.c dir
+		$(CC) $< -o $(BIN)/$@ $(CFLAGS) $(CPPFLAGS) $(INC) $(LIB)
 
 check   : all
 	for i in $(TESTS) ; do \

diff --git a/doc/Makefile.am b/doc/Makefile.am
index eef07b4..8989142 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,6 +22,7 @@ $(DOX_TAG): $(docx_inputs)
 	touch $(DOX_TAG)
 
 $(DOX_HTML_DIR): $(DOX_TAG)
+$(DOX_HTML_DIR)/index.html: $(DOX_HTML_DIR)
 
 $(DOX_PDF): $(DOX_TAG)
 	cd $(DOX_LATEX_DIR) &&\
