Don't make libfirm when cleaning cparser.
authorManuel Mohr <manuel.mohr@kit.edu>
Thu, 6 Sep 2012 14:27:55 +0000 (16:27 +0200)
committerManuel Mohr <manuel.mohr@kit.edu>
Thu, 6 Sep 2012 14:27:55 +0000 (16:27 +0200)
Makefile

index 6387123..6bc0441 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,7 @@ $(GOAL): $(LIBFIRM_FILE) $(OBJECTS)
        $(Q)$(CC) $(OBJECTS) $(LIBFIRM_FILE) -o $(GOAL) $(LFLAGS)
 
 ifneq ("$(LIBFIRM_FILE)", "")
+ifneq ("$(MAKECMDGOALS)", "clean")
 $(LIBFIRM_FILE): libfirm_subdir
 # Re-evaluate Makefile after libfirm_subdir has been executed
 Makefile: libfirm_subdir
@@ -111,6 +112,7 @@ Makefile: libfirm_subdir
 libfirm_subdir:
        $(Q)$(MAKE) -C $(FIRM_HOME) $(LIBFIRM_FILE_BASE)
 endif
+endif
 
 splint: $(SPLINTS)