From 3d906ded47fdea25ad3dcc8f891efd7aeb094bd0 Mon Sep 17 00:00:00 2001
From: Thomas Goyne <plorkyeran@aegisub.org>
Date: Sun, 8 Jan 2012 01:03:53 +0000
Subject: [PATCH] Remove precompiled headers on 'make clean' and add
 'mostlyclean' target that does not touch them

Originally committed to SVN as r6199.
---
 aegisub/Makefile.target | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/aegisub/Makefile.target b/aegisub/Makefile.target
index 04730b151..977b00e30 100644
--- a/aegisub/Makefile.target
+++ b/aegisub/Makefile.target
@@ -46,6 +46,12 @@ $(PROGRAM): $(OBJ)
 ##########
 clean: $(SUBDIRS)
 	$(BIN_RM) -f $(OBJ) $(CLEANFILES) $(LIB) $(LIB_SHARED) $(PROGRAM)
+ifdef PRECOMPILED_HEADER_NAME
+	$(BIN_RM) -f $(PRECOMPILED_HEADER_NAME).gch
+endif
+
+mostlyclean: $(SUBDIRS)
+	$(BIN_RM) -f $(OBJ) $(CLEANFILES) $(LIB) $(LIB_SHARED) $(PROGRAM)
 
 distclean: clean
 	$(BIN_RM) -rf $(DISTCLEANFILES) $(DEP)