From 66aa3efbd182c5597b66d9237c213449f31acdac Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 5 Jul 2023 08:45:14 -0700
Subject: [PATCH] htop: Change dependency order of header and sourcefiles

Fixes build race
| pcp/Platform.h:29:10: fatal error: DiskIOMeter.h: No such file or directory
|    29 | #include "DiskIOMeter.h"
|       |          ^~~~~~~~~~~~~~~
| compilation terminated.
| make[3]: *** [<builtin>: pcp-htop.o] Error 1

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/pcp/htop/GNUmakefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pcp/htop/GNUmakefile b/src/pcp/htop/GNUmakefile
index 167b4b048..3e29638d6 100644
--- a/src/pcp/htop/GNUmakefile
+++ b/src/pcp/htop/GNUmakefile
@@ -210,8 +210,8 @@ CFGCOLUMNS = $(patsubst %,pcp/columns/%,$(COLUMNS))
 CFGSCREENS = $(patsubst %,pcp/screens/%,$(SCREENS))
 
 CFGXFILES = $(CFGMETERS) $(CFGCOLUMNS) $(CFGSCREENS)
-TOPXFILES = $(TOPCFILES) $(TOPHFILES) $(DOCFILES)
-SUBXFILES = $(SUBCFILES) $(SUBHFILES)
+TOPXFILES = $(TOPHFILES) $(TOPCFILES) $(DOCFILES)
+SUBXFILES = $(SUBHFILES) $(SUBCFILES)
 CFILES = $(TOPCFILES) $(SUBCFILES)
 HFILES = $(TOPHFILES) $(SUBHFILES)
 LDIRT = $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) \
