File: fix-generated-makefile-deps.diff

package info (click to toggle)
premake4 4.3%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: ansic: 636; makefile: 57; sh: 2
file content (45 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description: Fix dependencies in pre-generated Makefile.
Forwarded: not-needed
Author: Nicolas Schodet <nico@ni.fr.eu.org>
Last-Update: 2025-05-25
Bug-Debian: https://bugs.debian.org/1105641

---
 Premake4.make | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Premake4.make b/Premake4.make
index ce8cebe..b05c36a 100644
--- a/Premake4.make
+++ b/Premake4.make
@@ -91,10 +91,10 @@ endif
 
 .PHONY: clean prebuild prelink
 
-all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
+all: $(TARGET)
 	@:
 
-$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
+$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES) | prebuild prelink $(TARGETDIR)
 	@echo Linking Premake4
 	$(SILENT) $(LINKCMD)
 	$(POSTBUILDCMDS)
@@ -132,7 +132,7 @@ prelink:
 	$(PRELINKCMDS)
 
 ifneq (,$(PCH))
-$(GCH): $(PCH)
+$(GCH): $(PCH) | $(OBJDIR)
 	@echo $(notdir $<)
 ifeq (posix,$(SHELLTYPE))
 	-$(SILENT) cp $< $(OBJDIR)
@@ -185,6 +185,8 @@ $(OBJDIR)/os_match.o: src/host/os_match.c
 	@echo $(notdir $<)
 	$(SILENT) $(CC) $(ALL_CFLAGS) -o "$@" -MF $(@:%.o=%.d) -c "$<"
 
+$(OBJECTS): | prebuild $(OBJDIR)
+
 -include $(OBJECTS:%.o=%.d)
 ifneq (,$(PCH))
   -include $(OBJDIR)/$(notdir $(PCH)).d