From 7f7cb5d874a857ab59bef7427734d8edfcca85bd Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 7 Feb 2012 16:39:58 +0100 Subject: more simplification of the main Makefile --- .../patches/001_add-main-makefile.full+lite.patch | 61 ++++++++-------------- 1 file changed, 23 insertions(+), 38 deletions(-) diff --git a/debian/patches/001_add-main-makefile.full+lite.patch b/debian/patches/001_add-main-makefile.full+lite.patch index 9f4b8d1af..7cd932111 100644 --- a/debian/patches/001_add-main-makefile.full+lite.patch +++ b/debian/patches/001_add-main-makefile.full+lite.patch @@ -5,50 +5,35 @@ Author: Mike Gabriel Last-Update: 2011-12-31 --- /dev/null +++ b/Makefile -@@ -0,0 +1,46 @@ +@@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +all: build + -+build: build-arch build-indep -+ -+clean: -+ $(MAKE) -C nxcomp $@ -+ $(MAKE) -C nxproxy $@ -+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi -+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi -+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi -+ -+distclean: -+ $(MAKE) -C nxcomp $@ -+ $(MAKE) -C nxproxy $@ -+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi -+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi -+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi -+ -+build-arch: -+ if test -d nx-X11; then \ -+ cd nxcomp && autoconf; cd ..; \ -+ cd nxcompext && autoconf; cd ..; \ -+ cd nxcompshad && autoconf; cd ..; \ -+ cd nx-X11 && make World && cd ..; \ ++build-lite: ++ cd nxcomp && autoconf && ./configure && $(MAKE) ++ cd nxproxy && autoconf && ./configure && $(MAKE) ++ ++build-full: ++# in the full case, we rely on "magic" in the nx-X11 imake-based makefiles... ++ cd nxcomp && autoconf && ./configure ++ cd nxcompext && autoconf ++ cd nxcompshad && autoconf ++ cd nx-X11 && $(MAKE) World ++ cd nxproxy && autoconf && ./configure && $(MAKE) ++ ++build: ++ if ! test -d nx-X11; then \ ++ $(MAKE) build-lite; \ + else \ -+ cd nxcomp && autoconf && ./configure && make; cd ..; \ ++ $(MAKE) build-full; \ + fi -+ cd nxproxy && autoconf && ./configure && make; cd .. -+ -+build-indep: + -+install: ++%: + $(MAKE) -C nxcomp $@ + $(MAKE) -C nxproxy $@ -+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi -+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi -+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi -+ -+uninstall: -+ $(MAKE) -C nxcomp $@ -+ $(MAKE) -C nxproxy $@ -+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi -+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi -+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi ++ if test -d nx-X11; then \ ++ $(MAKE) -C nxcompext $@; \ ++ $(MAKE) -C nxcompshad; \ ++ $(MAKE) -C nx-X11 $@; \ ++ fi -- cgit v1.2.3