Commit 380d2396 authored by Mike Gabriel's avatar Mike Gabriel

Add patches: 024_fix-make-clean.full.patch, 024_fix-make-clean.full+lite.patch.…

Add patches: 024_fix-make-clean.full.patch, 024_fix-make-clean.full+lite.patch. Fix clean-up of build tree after make build has run.
parent 1e3d6921
......@@ -6,6 +6,9 @@ nx-libs (2:3.5.0.16-0) UNRELEASED; urgency=low
* Add patch: 032_no-x11r6.debian.patch. Use /usr/lib/nx for nx-X11 on Debian.
* Drop patch 032, fix other patches so that installation via make install
installs NX components to /usr/local/lib/nx and /usr/local/include/nx.
* Add patches: 024_fix-make-clean.full.patch,
024_fix-make-clean.full+lite.patch. Fix clean-up of build tree after
make build has run.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Fri, 21 Sep 2012 10:06:54 +0200
......
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -313,4 +313,4 @@
distclean: clean
-rm -rf autom4te.cache config.status config.log \
- config.cache depend.status Makefile tags
+ config.cache depend.status Makefile tags configure
--- a/nxproxy/Makefile.in
+++ b/nxproxy/Makefile.in
@@ -109,4 +109,4 @@
$(PROGRAM) $(PROGRAM).exe $(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE)
distclean: clean
- -rm -f config.status config.log config.cache depend.status Makefile tags
+ -rm -rf autom4te.cache config.status config.log config.cache depend.status Makefile tags configure
Description: Provide main Makefile for whole source tree
By design this patch is not needed to be sent upstream.
Forwarded: not-needed
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-10-19
--- a/nx-X11/Makefile
+++ b/nx-X11/Makefile
@@ -138,6 +138,7 @@
xmakefile: Imakefile
$(RM) xmakefile
+ @rm -f $(IRULESRC)/date.def; echo "" > $(IRULESRC)/date.def;
$(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
World.Win32:
@@ -197,11 +198,16 @@
# a copy of every rule that might be invoked at top level
clean:
- $(MAKE_CMD) $@
+ -$(MAKE_CMD) $@
+ find config -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
+ find lib -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
+ find programs -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
+ find include -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
+ rm -f config/cf/{version.def,date.def}
dangerous_strip_clean:
$(MAKE_CMD) $@
distclean:
- $(MAKE_CMD) $@
+ -$(MAKE_CMD) $@
$(RM) xmakefile $(IRULESRC)/version.def $(IRULESRC)/date.def
depend:
$(MAKE_CMD) $@
--- a/nxcompext/Makefile.in
+++ b/nxcompext/Makefile.in
@@ -185,5 +185,5 @@
@ALL@
distclean: clean
- -rm -rf autom4te.cache config.status config.log \
+ -rm -rf autom4te.cache config.status config.log configure \
config.cache depend.status Makefile tags
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -222,4 +222,4 @@
$(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE) $(LIBDLL) $(LIBDLLSTATIC) $(PROGRAM) $(PROGRAM).exe
distclean: clean
- -rm -rf config.status config.log config.cache depend.status Makefile tags autom4te.cache
+ -rm -rf config.status config.log config.cache depend.status Makefile tags autom4te.cache configure
......@@ -65,7 +65,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
@echo ""
@date
@echo ""
@@ -153,15 +153,15 @@
@@ -154,15 +154,15 @@
-if exist xmakefile.bak del xmakefile.bak
-if exist xmakefile ren xmakefile xmakefile.bak
$(IMAKE:/=\) -s xmakefile -I$(IRULESRC) $(IMAKE_DEFINES) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
......@@ -87,18 +87,23 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
@echo :
@echo :
@echo Full build of $(RELEASE) complete.
@@ -197,33 +197,33 @@
@@ -198,38 +198,38 @@
# a copy of every rule that might be invoked at top level
clean:
- $(MAKE_CMD) $@
+ ${MAKE} ${MAKE_OPTS} $@
- -$(MAKE_CMD) $@
+ -${MAKE_CMD} ${MAKE_OPTS} $@
find config -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
find lib -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
find programs -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
find include -type f | egrep '.*/Makefile$$' | while read makefile; do rm -f $$makefile; done
rm -f config/cf/{version.def,date.def}
dangerous_strip_clean:
- $(MAKE_CMD) $@
+ ${MAKE} ${MAKE_OPTS} $@
distclean:
- $(MAKE_CMD) $@
+ ${MAKE} ${MAKE_OPTS} $@
- -$(MAKE_CMD) $@
+ -${MAKE} ${MAKE_OPTS} $@
$(RM) xmakefile $(IRULESRC)/version.def $(IRULESRC)/date.def
depend:
- $(MAKE_CMD) $@
......
......@@ -22,6 +22,8 @@
021_add-nxauth-wrapper.full.patch
022_add-nxproxy-wrapper.full+lite.patch
023_add-x2goagent-wrapper.full.patch
024_fix-make-clean.full.patch
024_fix-make-clean.full+lite.patch
030_nx-X11_configure-args.full.patch
031_nx-X11_parallel-make.full.patch
051_nxcomp_macos105-fdisset.full+lite.patch
......
......@@ -16,9 +16,6 @@ override_dh_auto_clean:
LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_clean
override_dh_clean:
rm -f nxcomp/configure
rm -f nxcompext/configure
rm -f nxcompshad/configure
rm -f nx-X11/changelog
rm -f nxcomp/changelog
rm -f nxcompext/changelog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment