Skip to content

Commit b1b86ab

Browse files
ibuclawdlang-bot
authored andcommitted
makefiles: Remove mak/IMPORTS and header .di generation recipes
1 parent 55b6a10 commit b1b86ab

File tree

6 files changed

+19
-59
lines changed

6 files changed

+19
-59
lines changed

mak/COPY

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,14 @@ COPY=\
120120
$(IMPDIR)\core\stdcpp\vector.d \
121121
$(IMPDIR)\core\stdcpp\xutility.d \
122122
\
123+
$(IMPDIR)\core\sync\barrier.d \
124+
$(IMPDIR)\core\sync\condition.d \
125+
$(IMPDIR)\core\sync\config.d \
123126
$(IMPDIR)\core\sync\event.d \
127+
$(IMPDIR)\core\sync\exception.d \
128+
$(IMPDIR)\core\sync\mutex.d \
129+
$(IMPDIR)\core\sync\rwmutex.d \
130+
$(IMPDIR)\core\sync\semaphore.d \
124131
\
125132
$(IMPDIR)\core\sys\bionic\err.d \
126133
$(IMPDIR)\core\sys\bionic\fcntl.d \

mak/IMPORTS

Lines changed: 0 additions & 8 deletions
This file was deleted.

mak/WINDOWS

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
$(mak\COPY)
2-
$(mak\IMPORTS)
32

4-
######################## Header .di file generation ##############################
3+
######################## Header file copy ##############################
54

6-
import: $(IMPORTS)
7-
8-
$(IMPDIR)\core\sync\barrier.di : src\core\sync\barrier.d
9-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
10-
11-
$(IMPDIR)\core\sync\condition.di : src\core\sync\condition.d
12-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
13-
14-
$(IMPDIR)\core\sync\config.di : src\core\sync\config.d
15-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
16-
17-
$(IMPDIR)\core\sync\exception.di : src\core\sync\exception.d
18-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
19-
20-
$(IMPDIR)\core\sync\mutex.di : src\core\sync\mutex.d
21-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
22-
23-
$(IMPDIR)\core\sync\rwmutex.di : src\core\sync\rwmutex.d
24-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
25-
26-
$(IMPDIR)\core\sync\semaphore.di : src\core\sync\semaphore.d
27-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $**
28-
29-
30-
######################## Header .di file copy ##############################
5+
import: copy
316

327
copydir: $(IMPDIR)
338

posix.mak

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ COPY:=$(subst \,/,$(COPY))
113113
include mak/DOCS
114114
DOCS:=$(subst \,/,$(DOCS))
115115

116-
include mak/IMPORTS
117-
IMPORTS:=$(subst \,/,$(IMPORTS))
118-
119116
include mak/SRCS
120117
SRCS:=$(subst \,/,$(SRCS))
121118

@@ -132,9 +129,9 @@ TIMELIMIT:=$(if $(shell which timelimit 2>/dev/null || true),timelimit -t 10 ,)
132129
######################## All of'em ##############################
133130

134131
ifneq (,$(SHARED))
135-
target : import copy dll $(DRUNTIME)
132+
target : copy dll $(DRUNTIME)
136133
else
137-
target : import copy $(DRUNTIME)
134+
target : copy $(DRUNTIME)
138135
endif
139136

140137
######################## Doc .html file generation ##############################
@@ -324,21 +321,14 @@ $(DOC_OUTPUT_DIR)/rt_typeinfo_%.html : src/rt/typeinfo/%.d $(DMD)
324321
$(DOC_OUTPUT_DIR)/rt_util_%.html : src/rt/util/%.d $(DMD)
325322
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<
326323

327-
######################## Header .di file generation ##############################
328-
329-
import: $(IMPORTS)
330-
331-
$(IMPDIR)/core/sync/%.di : src/core/sync/%.d $(DMD)
332-
@mkdir -p $(dir $@)
333-
$(DMD) -conf= -c -o- -Isrc -Iimport -Hf$@ $<
324+
######################## Header file copy ##############################
334325

335-
######################## Header .di file copy ##############################
326+
import: copy
336327

337328
copy: $(COPY)
338329

339330
$(IMPDIR)/object.d : src/object.d
340331
@mkdir -p $(dir $@)
341-
@rm -f $(IMPDIR)/object.di
342332
@cp $< $@
343333

344334
$(IMPDIR)/%.di : src/%.di

win32.mak

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ DRUNTIME=lib\$(DRUNTIME_BASE).lib
2929

3030
DOCFMT=
3131

32-
target: import copydir copy $(DRUNTIME)
32+
target: copydir copy $(DRUNTIME)
3333

3434
$(mak\COPY)
3535
$(mak\DOCS)
36-
$(mak\IMPORTS)
3736
$(mak\SRCS)
3837

3938
# NOTE: trace.d and cover.d are not necessary for a successful build
@@ -44,10 +43,9 @@ $(mak\SRCS)
4443
OBJS= errno_c_32omf.obj src\rt\minit.obj
4544
OBJS_TO_DELETE= errno_c_32omf.obj
4645

47-
######################## Header file generation ##############################
46+
######################## Header file copy ##############################
4847

49-
import:
50-
"$(MAKE)" -f mak/WINDOWS import DMD="$(DMD)" HOST_DMD="$(HOST_DMD)" MODEL=32 IMPDIR="$(IMPDIR)"
48+
import: copy
5149

5250
copydir:
5351
"$(MAKE)" -f mak/WINDOWS copydir DMD="$(DMD)" HOST_DMD="$(HOST_DMD)" MODEL=32 IMPDIR="$(IMPDIR)"

win64.mak

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ CFLAGS=$(CFLAGS) /Zl
4949

5050
DOCFMT=
5151

52-
target: import copydir copy $(DRUNTIME)
52+
target: copydir copy $(DRUNTIME)
5353

5454
$(mak\COPY)
5555
$(mak\DOCS)
56-
$(mak\IMPORTS)
5756
$(mak\SRCS)
5857

5958
# NOTE: trace.d and cover.d are not necessary for a successful build
@@ -62,10 +61,9 @@ $(mak\SRCS)
6261
OBJS= errno_c_$(MODEL).obj
6362
OBJS_TO_DELETE= errno_c_$(MODEL).obj
6463

65-
######################## Header file generation ##############################
64+
######################## Header file copy ##############################
6665

67-
import:
68-
"$(MAKE)" -f mak/WINDOWS import DMD="$(DMD)" HOST_DMD="$(HOST_DMD)" MODEL=$(MODEL) IMPDIR="$(IMPDIR)"
66+
import: copy
6967

7068
copydir:
7169
"$(MAKE)" -f mak/WINDOWS copydir DMD="$(DMD)" HOST_DMD="$(HOST_DMD)" MODEL=$(MODEL) IMPDIR="$(IMPDIR)"

0 commit comments

Comments
 (0)