diff --git a/compiler/Makefile b/compiler/Makefile index 6ecac94f61..9242d95d55 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -2553,7 +2553,7 @@ cycleclean: cleanall $(addsuffix _clean,$(PPC_TARGET)) -$(DEL) $(EXENAME) clean: tempclean execlean cleanall $(addsuffix _clean,$(PPC_TARGET)) $(addsuffix _clean,$(TARGET_DIRS)) distclean: tempclean execlean cleanall $(addsuffix _clean,$(CYCLETARGETS)) $(addsuffix _distclean,$(TARGET_DIRS)) -$(MSG2INC): $(COMPILERUTILSDIR)/msg2inc.pp +$(MSG2INC): $(COMPILER_TARGETDIR) $(COMPILER_UNITTARGETDIR) $(COMPILERUTILSDIR)/msg2inc.pp $(COMPILER) -FE. $(COMPILERUTILSDIR)/msg2inc.pp msgtxt.inc: $(MSGFILE) $(MAKE) $(MSG2INC) diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 2557729af1..edb5d2cddc 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -311,7 +311,7 @@ distclean: tempclean execlean cleanall $(addsuffix _clean,$(CYCLETARGETS)) $(add # Make targets ##################################################################### -$(MSG2INC): $(COMPILERUTILSDIR)/msg2inc.pp +$(MSG2INC): $(COMPILER_TARGETDIR) $(COMPILER_UNITTARGETDIR) $(COMPILERUTILSDIR)/msg2inc.pp $(COMPILER) -FE. $(COMPILERUTILSDIR)/msg2inc.pp # The msgtxt.inc only depends on the error?.msg file, not on msg2inc,