Description: Fix FTBFS with make --shuffle=reverse
 Split build-tools into build-generators and build-tools to fix a circular dependency
 where building pascal_pre_proc requires .inc files, but the generators for those .inc
 files are built at the same time.
Author: Mazen Neifer <mazen@debian.org>
Forwarded: yes
Bug-Debian: https://bugs.debian.org/1105521
Last-Update: 2026-03-15

Index: pasdoc/Makefile
===================================================================
--- pasdoc.orig/Makefile
+++ pasdoc/Makefile
@@ -274,8 +274,11 @@ build-pascal_pre_proc: make-dirs
 	$(FPC_DEFAULT) $(FPC_DEBUG_FLAGS) ./source/tools/pascal_pre_proc.dpr
 
 .PHONY: build-tools
-build-tools: make-dirs
+build-tools: build-generators
 	$(FPC_DEFAULT) $(FPC_DEBUG_FLAGS) ./source/tools/pascal_pre_proc.dpr
+
+.PHONY: build-generators
+build-generators: make-dirs
 	$(FPC_DEFAULT) $(FPC_DEBUG_FLAGS) ./source/tools/file_to_pascal_data.dpr
 	$(FPC_DEFAULT) $(FPC_DEBUG_FLAGS) ./source/tools/file_to_pascal_string.dpr
 
