File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,15 @@ $(HEADER_BUILD)/qstrdefs.generated.h: $(PY_SRC)/makeqstrdata.py $(HEADER_BUILD)/
262
262
$(STEPECHO ) " GEN $@ "
263
263
$(Q )$(PYTHON ) $(PY_SRC ) /makeqstrdata.py --output_type=data $(HEADER_BUILD ) /qstrdefs.preprocessed.h > $@
264
264
265
- $(PY_BUILD ) /translations-$(TRANSLATION ) .c $(HEADER_BUILD ) /compression.generated.h : $(PY_SRC ) /maketranslationdata.py $(HEADER_BUILD ) /$(TRANSLATION ) .mo $(HEADER_BUILD ) /qstrdefs.preprocessed.h
265
+ # Is generated as a side-effect of building compression.generated.h
266
+ # Specifying both in a single rule actually causes the rule to be run twice!
267
+ # This alternative makes it run just once.
268
+ $(PY_BUILD ) /translations-$(TRANSLATION ) .c : $(HEADER_BUILD ) /compression.generated.h
269
+ @true
270
+
271
+ $(HEADER_BUILD ) /compression.generated.h : $(PY_SRC ) /maketranslationdata.py $(HEADER_BUILD ) /$(TRANSLATION ) .mo $(HEADER_BUILD ) /qstrdefs.preprocessed.h
266
272
$(STEPECHO ) " GEN $@ "
273
+ $(Q ) mkdir -p $(PY_BUILD )
267
274
$(Q )$(PYTHON ) $(PY_SRC ) /maketranslationdata.py --compression_filename $(HEADER_BUILD ) /compression.generated.h --translation $(HEADER_BUILD ) /$(TRANSLATION ) .mo --translation_filename $(PY_BUILD ) /translations-$(TRANSLATION ) .c $(HEADER_BUILD ) /qstrdefs.preprocessed.h
268
275
269
276
PY_CORE_O += $(PY_BUILD ) /translations-$(TRANSLATION ) .o
You can’t perform that action at this time.
0 commit comments