mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
build: Add redirect Makefile for when $srcdir != $builddir
This commit is contained in:
parent
ba2c57d842
commit
a3a6f5c9d8
@ -104,6 +104,12 @@ cd $ORIGDIR || exit $?
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
$srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
|
||||
|
||||
# Put a redirect makefile here
|
||||
if [ ! -f $srcdir/Makefile ]; then
|
||||
cat $srcdir/build/Makefile.redirect > $srcdir/Makefile
|
||||
printf "\nREDIRECT = %s\n" "$(realpath $ORIGDIR)" >> $srcdir/Makefile
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Now type 'make' to compile $PROJECT."
|
||||
fi
|
||||
|
9
build/Makefile.redirect
Normal file
9
build/Makefile.redirect
Normal file
@ -0,0 +1,9 @@
|
||||
# This redirects all make targets to builddir
|
||||
all:
|
||||
$(MAKE) -C $(REDIRECT) all
|
||||
%:
|
||||
$(MAKE) -C $(REDIRECT) $@
|
||||
ifeq ($(MAKEFLAGS), )
|
||||
JOBARG = -j4
|
||||
endif
|
||||
# REDIRECT=build
|
Loading…
Reference in New Issue
Block a user