From a78bc5e6fc905ac202f9d486111cacc09dce5128 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 16 Feb 2020 22:37:04 +0100 Subject: [PATCH] LibGUI: Generate NotificationServer IPC messages during build I hacked this to skip using flock since NotificationServer and LibGUI depend on each other. There's probably a better solution. --- Libraries/LibGUI/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Libraries/LibGUI/Makefile b/Libraries/LibGUI/Makefile index a5132c0c1c1..3e915fbe7f5 100644 --- a/Libraries/LibGUI/Makefile +++ b/Libraries/LibGUI/Makefile @@ -72,13 +72,17 @@ LIBRARY = libgui.a Application.cpp: ../../Servers/WindowServer/WindowServerEndpoint.h -Notification.cpp: ../../Servers/NotificationServer/NotificationServerEndpoint.h - ../../Servers/WindowServer/WindowServerEndpoint.h: @flock $(dir $(@)) $(MAKE) -C $(dir $(@)) +# HACK: NotificationServer depends on LibGUI so we don't flock for these.. +Notification.cpp: ../../Servers/NotificationServer/NotificationServerEndpoint.h ../../Servers/NotificationServer/NotificationClientEndpoint.h + ../../Servers/NotificationServer/NotificationServerEndpoint.h: - @flock $(dir $(@)) $(MAKE) -C $(dir $(@)) + $(MAKE) -C $(dir $(@)) NotificationServerEndpoint.h + +../../Servers/NotificationServer/NotificationClientEndpoint.h: + $(MAKE) -C $(dir $(@)) NotificationClientEndpoint.h install: mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibGUI/