Browse Source

* clean ppu files in compiler dir first before building

peter 24 years ago
parent
commit
46eba2c5c8
2 changed files with 10 additions and 5 deletions
  1. 4 1
      ide/compiler/Makefile
  2. 6 4
      ide/compiler/Makefile.fpc

+ 4 - 1
ide/compiler/Makefile

@@ -926,6 +926,9 @@ info: fpc_info
 ifneq ($(wildcard fpcmake.loc),)
 ifneq ($(wildcard fpcmake.loc),)
 include fpcmake.loc
 include fpcmake.loc
 endif
 endif
-all: fpc_all
+.PHONY: compiler_ppuclean all clean install
+compiler_ppuclean:
+	$(MAKE) -C $(COMPILERDIR) ppuclean
+all: compiler_ppuclean fpc_all
 clean: cleanall
 clean: cleanall
 install:
 install:

+ 6 - 4
ide/compiler/Makefile.fpc

@@ -5,9 +5,6 @@
 [target]
 [target]
 units=compunit
 units=compunit
 
 
-#[require]
-#packages=fv
-
 [compiler]
 [compiler]
 targetdir=.
 targetdir=.
 unitdir=$(COMPILERDIR) $(COMPILERDIR)/$(CPU_TARGET) $(COMPILERDIR)/targets
 unitdir=$(COMPILERDIR) $(COMPILERDIR)/$(CPU_TARGET) $(COMPILERDIR)/targets
@@ -38,7 +35,12 @@ endif
 
 
 
 
 [rules]
 [rules]
-all: fpc_all
+.PHONY: compiler_ppuclean all clean install
+
+compiler_ppuclean:
+        $(MAKE) -C $(COMPILERDIR) ppuclean
+
+all: compiler_ppuclean fpc_all
 
 
 clean: cleanall
 clean: cleanall