From 00b266b82503e8155e7195180f287df0392fb770 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 7 Feb 2012 16:10:34 +0100 Subject: Use ,,$(MAKE) -C'' in main Makefile for calling Makefiles in subdirectories, make build stanza work for nx-libs-full and nx-libs-lite. --- debian/changelog | 3 +- .../patches/001_add-main-makefile.full+lite.patch | 56 ++++++++++++---------- 2 files changed, 32 insertions(+), 27 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index c56632ce6..012c7bd95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ nx-libs (2:3.5.0.11-0) UNRELEASED; urgency=low - * Use ,,make -C'' in main Makefile for calling Makefiles in subdirectories. + * Use ,,$(MAKE) -C'' in main Makefile for calling Makefiles in subdirectories, + make build stanza work for nx-libs-full and nx-libs-lite. -- Mike Gabriel Tue, 07 Feb 2012 13:48:19 +0100 diff --git a/debian/patches/001_add-main-makefile.full+lite.patch b/debian/patches/001_add-main-makefile.full+lite.patch index 2d35e822b..0adead108 100644 --- a/debian/patches/001_add-main-makefile.full+lite.patch +++ b/debian/patches/001_add-main-makefile.full+lite.patch @@ -5,7 +5,7 @@ Author: Mike Gabriel Last-Update: 2011-12-31 --- /dev/null +++ b/Makefile -@@ -0,0 +1,42 @@ +@@ -0,0 +1,46 @@ +#!/usr/bin/make -f + +all: build @@ -13,38 +13,42 @@ Last-Update: 2011-12-31 +build: build-arch build-indep + +clean: -+ -make -C nx-X11 $@ -+ -make -C nxcomp $@ -+ -make -C nxcompext $@ -+ -make -C nxcompshad $@ -+ -make -C nxproxy $@ ++ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi ++ if test -d nxcomp; then $(MAKE) -C nxcomp $@; fi ++ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi ++ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi ++ if test -d nxproxy; then $(MAKE) -C nxproxy $@; fi + +distclean: -+ -make -C nx-X11 $@ -+ -make -C nxcomp $@ -+ -make -C nxcompext $@ -+ -make -C nxcompshad $@ -+ -make -C nxproxy $@ ++ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi ++ if test -d nxcomp; then $(MAKE) -C nxcomp $@; fi ++ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi ++ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi ++ if test -d nxproxy; then $(MAKE) -C nxproxy $@; fi + +build-arch: -+ cd nxcomp && autoconf && ./configure && make -+ -cd nxcompext && autoconf && ./configure && make -+ -cd nxcompshad && autoconf && ./configure && make -+ -cd nx-X11 && make World && ./configure && make -+ cd nxproxy && autoconf && ./configure && make ++ if test -d nx-X11; then \ ++ if test -d nxcomp; then cd nxcomp && autoconf; cd ..; fi; \ ++ if test -d nxcompext; then cd nxcompext && autoconf; cd ..; fi; \ ++ if test -d nxcompshad; then cd nxcompshad && autoconf; cd ..; fi; \ ++ cd nx-X11 && make World && cd ..; \ ++ else \ ++ if test -d nxcomp; then cd nxcomp && autoconf && ./configure && make; cd ..; fi; \ ++ fi ++ if test -d nxproxy; then cd nxproxy && autoconf && ./configure && make; cd ..; fi + +build-indep: + +install: -+ -make -C nx-X11 $@ -+ -make -C nxcomp $@ -+ -make -C nxcompext $@ -+ -make -C nxcompshad $@ -+ -make -C nxproxy $@ ++ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi ++ if test -d nxcomp; then $(MAKE) -C nxcomp $@; fi ++ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi ++ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi ++ if test -d nxproxy; then $(MAKE) -C nxproxy $@; fi + +uninstall: -+ -make -C nx-X11 $@ -+ -make -C nxcomp $@ -+ -make -C nxcompext $@ -+ -make -C nxcompshad $@ -+ -make -C nxproxy $@ ++ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi ++ if test -d nxcomp; then $(MAKE) -C nxcomp $@; fi ++ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi ++ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi ++ if test -d nxproxy; then $(MAKE) -C nxproxy $@; fi -- cgit v1.2.3