aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-04-25 18:37:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-04-25 18:38:33 +0200
commitda4770474c6b9aab49242d0012dfd4497250b484 (patch)
treeda9287c9181f81e10b82cd2b389a9424ce0f1c3c /Makefile
parent13bf7c037175d2600491a17b442570b797423949 (diff)
downloadnx-libs-da4770474c6b9aab49242d0012dfd4497250b484.tar.gz
nx-libs-da4770474c6b9aab49242d0012dfd4497250b484.tar.bz2
nx-libs-da4770474c6b9aab49242d0012dfd4497250b484.zip
Makefile targets: Rewriting and consolidating the target structure for nx-X11/ subdir (except nx-X11/lib/).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 19 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 87f623491..14d4a5ccd 100644
--- a/Makefile
+++ b/Makefile
@@ -65,26 +65,24 @@ NX_XTRANS_HEADERS = \
Xtransutil.c \
$(NULL)
-%:
- if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp "$@"; fi
- if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy "$@"; fi
- if test -d nx-X11; then \
- if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib "$@"; fi; \
- if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad "$@"; fi; \
- if test -f nx-X11/Makefile; then ${MAKE} -C nx-X11 "$@"; fi; \
- fi
-
- # clean auto-generated files
- if [ "x$@" == "xclean" ] || [ "x$@" = "xdistclean" ]; then \
- 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/date.def; \
- ${MAKE} clean-env; \
- fi
-
-all:
- ${MAKE} build
+all: build
+
+clean:
+ if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp clean; fi
+ if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy clean; fi
+ if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib clean; fi
+ if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad clean; fi
+ if test -d nx-X11; then ${MAKE} clean-env; fi
+
+distclean: clean
+ if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp distclean; fi
+ if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy distclean; fi
+ if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib distclean; fi
+ 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
test:
echo "No testing for NX (redistributed)"
@@ -126,9 +124,7 @@ clean-env: version
[ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ || :
[ -d exports/include/nx-X11/ ] && $(RM_DIR) exports/include/nx-X11/ || :
- # no parallel clean-up in nx-X11, it fails...
- # see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895540
- ${MAKE} -j1 -C nx-X11 CleanEnv FONT_DEFINES="$(FONT_DEFINES)" XEXT_EXTRA_DEFINES="$(XEXT_EXTRA_DEFINES)" IMAKE_DEFINES="$(IMAKE_DEFINES)"
+ ${MAKE} -C nx-X11 clean FONT_DEFINES="$(FONT_DEFINES)" XEXT_EXTRA_DEFINES="$(XEXT_EXTRA_DEFINES)" IMAKE_DEFINES="$(IMAKE_DEFINES)"
build-lite:
cd nxcomp && autoreconf -vfsi && (${CONFIGURE}) && ${MAKE}