[X2Go-Commits] [nx-libs] 03/14: Makefile: use (more) RM macros
git-admin at x2go.org
git-admin at x2go.org
Thu Nov 22 09:32:58 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository nx-libs.
commit 58615f9fc27e49066277ed419f76866711ef4e74
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Sat Nov 10 14:26:15 2018 +0100
Makefile: use (more) RM macros
---
Makefile | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index f93fb28..9ea14c0 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ SYMLINK_FILE=ln -f -s
# helpers for "clean" and "uninstall" targets
RM_FILE=rm -f
RM_DIR=rmdir -p --ignore-fail-on-non-empty
+RM_DIR_REC=rm -Rf
ETCDIR_NX ?= /etc/nxagent
PREFIX ?= /usr/local
@@ -74,9 +75,9 @@ distclean: clean
if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad distclean; fi
if test -d nx-X11; then ${MAKE} -C nx-X11 distclean; fi
if [ -x ./mesa-quilt ]; then ./mesa-quilt pop -a; fi
- rm -Rf nx-X11/extras/Mesa/.pc/
- rm -f nx-X11/config/cf/nxversion.def
- rm -f nx-X11/config/cf/nxconfig.def
+ $(RM_DIR_REC) nx-X11/extras/Mesa/.pc/
+ $(RM_FILE) nx-X11/config/cf/nxversion.def
+ $(RM_FILE) nx-X11/config/cf/nxconfig.def
test:
echo "No testing for NX (redistributed)"
@@ -205,7 +206,7 @@ install-full:
gzip $(DESTDIR)$(PREFIX)/share/man/man1/*.1
# create a clean nx-X11/.build-exports space
- rm -Rf nx-X11/.build-exports
+ $(RM_DIR_REC) nx-X11/.build-exports
mkdir -p nx-X11/.build-exports/include
mkdir -p nx-X11/.build-exports/lib
@@ -263,5 +264,5 @@ uninstall-full:
$(RM_FILE) $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(RM_DIR) $(DESTDIR)$(PREFIX)/share/nx/
- if test -d $(DESTDIR)$(NXLIBDIR); then rm -rf $(DESTDIR)$(NXLIBDIR); fi
- if test -d $(DESTDIR)$(INCLUDEDIR)/nx; then rm -rf $(DESTDIR)$(INCLUDEDIR)/nx; fi
+ $(RM_DIR_REC) $(DESTDIR)$(NXLIBDIR)
+ $(RM_DIR_REC) $(DESTDIR)$(INCLUDEDIR)/nx
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list