From fb2c3475dfeb3ce072928e9ccf10ed8b913d07f4 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 17 Feb 2008 10:24:50 +0000
Subject: [PATCH] uninstall targets

---
 Makefile | 21 ++++++++++++++++-----
 doc/TODO | 15 +--------------
 2 files changed, 17 insertions(+), 19 deletions(-)

diff --git a/Makefile b/Makefile
index 8aa128b15f..6b4fc3b7bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.468 2008-02-17 08:47:55 geuzaine Exp $
+# $Id: Makefile,v 1.469 2008-02-17 10:24:50 geuzaine Exp $
 #
 # Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
 #
@@ -60,6 +60,11 @@ link-mac-universal: compile
 	lipo -create bin/gmsh_i386 bin/gmsh_ppc -output bin/gmsh
 	rm -f bin/gmsh_i386 bin/gmsh_ppc
 
+.PHONY: lib
+lib: compile
+	${AR} ${ARFLAGS}bin/libGmsh${LIBEXT} lib/*${LIBEXT}
+	${RANLIB} bin/libGmsh${LIBEXT}
+
 compile: variables initialtag
 	@for i in ${GMSH_DIRS}; do (cd $$i && ${MAKE}); done
 
@@ -70,14 +75,16 @@ install: variables
 	mkdir -p ${mandir}/man1
 	cp -f doc/gmsh.1 ${mandir}/man1
 
+uninstall:
+	rm -f ${bindir}/gmsh${EXEEXT}
+	rm -f ${mandir}/man1/gmsh.1
+
 install-mac: variables package-mac
 	cp -rf gmsh-${GMSH_VERSION}/Gmsh.app /Applications
 	rm -rf gmsh-${GMSH_VERSION} gmsh-${GMSH_VERSION}-MacOSX.tgz
 
-.PHONY: lib
-lib: compile
-	${AR} ${ARFLAGS}bin/libGmsh${LIBEXT} lib/*${LIBEXT}
-	${RANLIB} bin/libGmsh${LIBEXT}
+uninstall-mac:
+	rm -rf /Applications/Gmsh.app
 
 install-lib: lib
 	mkdir -p ${includedir}/gmsh
@@ -86,6 +93,10 @@ install-lib: lib
 	mkdir -p ${libdir}
 	cp -f bin/libGmsh${LIBEXT} ${libdir}/libGmsh${LIBSUFFIX}${LIBEXT}
 
+uninstall-lib:
+	rm -rf ${includedir}/gmsh
+	rm -rf ${libdir}/libGmsh${LIBSUFFIX}${LIBEXT}
+
 embed:
 	@if [ -r ../getdp2/contrib/gmsh/Makefile ]; then \
           rsync -av ${GMSH_EMBEDDED} ../getdp2/contrib/gmsh;\
diff --git a/doc/TODO b/doc/TODO
index 8fe7d10ee1..ed77c7ec93 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,4 +1,4 @@
-$Id: TODO,v 1.67 2008-02-15 20:02:24 geuzaine Exp $
+$Id: TODO,v 1.68 2008-02-17 10:24:50 geuzaine Exp $
 
 ********************************************************************
 
@@ -15,14 +15,6 @@ Plus we need to fix the 1D mesh in all cases
 
 ********************************************************************
 
-add way to invert element orientation (per element or per surface)
-
-********************************************************************
-
-add "make uninstall"
-
-********************************************************************
-
 Add list of recently loaded files in the GUI
 
 ********************************************************************
@@ -94,11 +86,6 @@ doing barycentric subdivision on tets
 
 ********************************************************************
 
-bug: quads orientation is wrong after recombine + quads wrong in some
-cases
-
-********************************************************************
-
 re-implement STL remeshing
 
 ********************************************************************
-- 
GitLab