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