From d7c2c8333aa4bf135a0f78620ff19046c603ecf6 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Tue, 20 Jan 2015 12:14:54 +0100 Subject: [PATCH] add mrproper target to fix enet build Sometimes the enet build seems to get messed up and "make" won't work anymore in ../enet. The mrproper target tries to clean up ../enet, but if it doesn't work, it deletes ../enet/Makefile manually. This triggers a configure run in ../enet with the next make invocation - which should fix everything. --- source/src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/src/Makefile b/source/src/Makefile index 2ae8ca0f..1d596017 100644 --- a/source/src/Makefile +++ b/source/src/Makefile @@ -139,7 +139,10 @@ clean-enet: ../enet/Makefile clean: -$(RM) $(CLIENT_PCH) $(CLIENT_OBJS) $(SERVER_OBJS) $(MASTER_OBJS) ac_client ac_server ac_master -# -$(MAKE) -C ../enet/ clean + +mrproper: clean ../enet/Makefile + $(MAKE) -C ../enet/ distclean + -$(RM) ../enet/Makefile %.h.gch: %.h $(CXX) $(CXXFLAGS) -x c++-header -o $@.tmp $(subst .h.gch,.h,$@)