|
|
873311 |
From 7f43255972b741ff178f94233ffff67c9779c247 Mon Sep 17 00:00:00 2001
|
|
|
873311 |
From: Nils Philippsen <nils@redhat.com>
|
|
|
873311 |
Date: Thu, 16 Aug 2012 10:57:38 +0200
|
|
|
873311 |
Subject: [PATCH] patch: off-root-build
|
|
|
873311 |
|
|
|
873311 |
Squashed commit of the following:
|
|
|
873311 |
|
|
|
873311 |
commit f88d28c807667f618b3b1cf91c12b823f3853983
|
|
|
873311 |
Author: Nils Philippsen <nils@redhat.com>
|
|
|
873311 |
Date: Fri Nov 19 12:23:57 2010 +0100
|
|
|
873311 |
|
|
|
873311 |
enable off-root builds
|
|
|
873311 |
---
|
|
|
873311 |
configure.in | 2 +-
|
|
|
873311 |
doc/Makefile.in | 12 ++++++------
|
|
|
873311 |
lib/Makefile.in | 4 ++--
|
|
|
873311 |
src/Makefile.in | 8 ++++----
|
|
|
873311 |
4 files changed, 13 insertions(+), 13 deletions(-)
|
|
|
873311 |
|
|
|
873311 |
diff --git a/configure.in b/configure.in
|
|
|
873311 |
index a770253..770077b 100644
|
|
|
873311 |
--- a/configure.in
|
|
|
873311 |
+++ b/configure.in
|
|
|
873311 |
@@ -312,4 +312,4 @@ echo "* ------------------------------------------------------------ *"
|
|
|
873311 |
echo "* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *"
|
|
|
873311 |
echo "* ------------------------------------------------------------ *"
|
|
|
873311 |
echo "****************************************************************"
|
|
|
873311 |
-cat xsane.NEWS
|
|
|
873311 |
+cat ${srcdir}/xsane.NEWS
|
|
|
873311 |
diff --git a/doc/Makefile.in b/doc/Makefile.in
|
|
|
873311 |
index 59b022b..4038a6b 100644
|
|
|
873311 |
--- a/doc/Makefile.in
|
|
|
873311 |
+++ b/doc/Makefile.in
|
|
|
873311 |
@@ -57,14 +57,14 @@ install: $(MANPAGES)
|
|
|
873311 |
$(MKINSTALLDIRS) $(DESTDIR)$(datadir)
|
|
|
873311 |
|
|
|
873311 |
$(MKINSTALLDIRS) $(DESTDIR)$(xsanedocdir)
|
|
|
873311 |
- @for page in *.html; do\
|
|
|
873311 |
+ @for page in $(notdir $(wildcard $(srcdir)/*.html)); do \
|
|
|
873311 |
echo installing $${page} in $(DESTDIR)$(xsanedocdir)/$${page}...; \
|
|
|
873311 |
- $(INSTALL_DATA) $${page} $(DESTDIR)$(xsanedocdir)/$${page} || exit 1; \
|
|
|
873311 |
+ $(INSTALL_DATA) $(srcdir)/$${page} $(DESTDIR)$(xsanedocdir)/$${page} || exit 1; \
|
|
|
873311 |
done
|
|
|
873311 |
|
|
|
873311 |
- @for image in *.jpg; do\
|
|
|
873311 |
+ @for image in $(notdir $(wildcard $(srcdir)/*.jpg)); do \
|
|
|
873311 |
echo installing $${image} in $(DESTDIR)$(xsanedocdir)/$${image}...; \
|
|
|
873311 |
- $(INSTALL_DATA) $${image} $(DESTDIR)$(xsanedocdir)/$${image} || exit 1; \
|
|
|
873311 |
+ $(INSTALL_DATA) $(srcdir)/$${image} $(DESTDIR)$(xsanedocdir)/$${image} || exit 1; \
|
|
|
873311 |
done
|
|
|
873311 |
|
|
|
873311 |
uninstall:
|
|
|
873311 |
@@ -73,12 +73,12 @@ uninstall:
|
|
|
873311 |
rm -f $(DESTDIR)$(mandir)/man1/$${page} || exit 1; \
|
|
|
873311 |
done
|
|
|
873311 |
|
|
|
873311 |
- @for page in *.html; do\
|
|
|
873311 |
+ @for page in $(notdir $(wildcard $(srcdir)/*.html)); do \
|
|
|
873311 |
echo uninstalling $(DESTDIR)$(xsanedocdir)/$${page}...; \
|
|
|
873311 |
rm -f $(DESTDIR)$(xsanedocdir)/$${page} || exit 1; \
|
|
|
873311 |
done
|
|
|
873311 |
|
|
|
873311 |
- @for image in *.jpg; do\
|
|
|
873311 |
+ @for image in $(notdir $(wildcard $(srcdir)/*.jpg)); do \
|
|
|
873311 |
echo uninstalling $${image} in $(DESTDIR)$(xsanedocdir)/$${image}...; \
|
|
|
873311 |
rm -f $(DESTDIR)$(xsanedocdir)/$${image} || exit 1; \
|
|
|
873311 |
done
|
|
|
873311 |
diff --git a/lib/Makefile.in b/lib/Makefile.in
|
|
|
873311 |
index 7567d54..6be1eeb 100644
|
|
|
873311 |
--- a/lib/Makefile.in
|
|
|
873311 |
+++ b/lib/Makefile.in
|
|
|
873311 |
@@ -30,7 +30,7 @@ RANLIB = @RANLIB@
|
|
|
873311 |
|
|
|
873311 |
CC = @CC@
|
|
|
873311 |
INCLUDES = -I. -I$(srcdir) \
|
|
|
873311 |
- -I$(top_builddir)/include/sane -I$(top_srcdir)/include
|
|
|
873311 |
+ -I$(top_builddir)/include/sane -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
|
873311 |
CPPFLAGS = @CPPFLAGS@
|
|
|
873311 |
CFLAGS = @CFLAGS@
|
|
|
873311 |
LDFLAGS = @LDFLAGS@
|
|
|
873311 |
@@ -68,7 +68,7 @@ uninstall:
|
|
|
873311 |
check:
|
|
|
873311 |
|
|
|
873311 |
depend:
|
|
|
873311 |
- makedepend -I. -I../include *.c
|
|
|
873311 |
+ makedepend -I. -I../include $(srcdir)/*.c
|
|
|
873311 |
|
|
|
873311 |
clean:
|
|
|
873311 |
rm -f *.out *.o *.lo *~ *.a *.bak $(TESTPROGRAMS)
|
|
|
873311 |
diff --git a/src/Makefile.in b/src/Makefile.in
|
|
|
873311 |
index 905ef93..2b246db 100644
|
|
|
873311 |
--- a/src/Makefile.in
|
|
|
873311 |
+++ b/src/Makefile.in
|
|
|
873311 |
@@ -77,10 +77,10 @@ install: $(PROGRAMS)
|
|
|
873311 |
$(INSTALL_DATA) $(srcdir)/xsane-eula.txt $(DESTDIR)$(sanedatadir)/xsane/xsane-eula.txt
|
|
|
873311 |
$(INSTALL_DATA) $(srcdir)/xsane.desktop $(DESTDIR)$(desktopappdir)/xsane.desktop
|
|
|
873311 |
$(INSTALL_DATA) $(srcdir)/xsane.xpm $(DESTDIR)$(pixmapdir)/xsane.xpm
|
|
|
873311 |
- @for logo in *-logo.xpm; do \
|
|
|
873311 |
+ @for logo in $(notdir $(wildcard $(srcdir)/*-logo.xpm)); do \
|
|
|
873311 |
echo installing $(DESTDIR)$(sanedatadir)/xsane/$${logo}; \
|
|
|
873311 |
$(INSTALL_DATA) $(srcdir)/$${logo} $(DESTDIR)$(sanedatadir)/xsane/$${logo}; \
|
|
|
873311 |
- done
|
|
|
873311 |
+ done
|
|
|
873311 |
|
|
|
873311 |
uninstall:
|
|
|
873311 |
@for program in $(BINPROGS); do \
|
|
|
873311 |
@@ -99,7 +99,7 @@ uninstall:
|
|
|
873311 |
rm -f $(DESTDIR)$(desktopappdir)/xsane.desktop
|
|
|
873311 |
echo uninstalling $(DESTDIR)$(pixmapdir)/xsane.xpm
|
|
|
873311 |
rm -f $(DESTDIR)$(pixmapdir)/xsane.xpm
|
|
|
873311 |
- @for logo in *-logo.xpm; do \
|
|
|
873311 |
+ @for logo in $(notdir $(wildcard $(srcdir)/*-logo.xpm)); do \
|
|
|
873311 |
echo uninstalling $(DESTDIR)$(sanedatadir)/xsane/$${logo}; \
|
|
|
873311 |
rm -f $(DESTDIR)$(sanedatadir)/xsane/$${logo}; \
|
|
|
873311 |
done
|
|
|
873311 |
@@ -119,7 +119,7 @@ distclean: clean
|
|
|
873311 |
rm -f Makefile $(PROGRAMS)
|
|
|
873311 |
|
|
|
873311 |
depend:
|
|
|
873311 |
- makedepend $(INCLUDES) *.c
|
|
|
873311 |
+ makedepend $(INCLUDES) $(srcdir)/*.c
|
|
|
873311 |
|
|
|
873311 |
.PHONY: all install depend clean distclean
|
|
|
873311 |
|
|
|
873311 |
--
|
|
|
873311 |
1.7.11.4
|
|
|
873311 |
|