disable the compile-flags-changed check
Is there any way to disable the "the compile flags have changed, recompile everything" check? I want to built with another prefix than installing to create a tarball I copy to other machines. Is there any way to do this? Otherwise: could we include something like this?
ifeq ($(IGNORE_CFLAG_CHANGES),)
# old GIT-CFLAGS rules
else
GIT-CFLAGS:
touch "$@"
endifQuoted 4 lines · Matthias Lederhofer
Is there any way to disable the "the compile flags have changed, recompile everything" check? I want to built with another prefix than installing to create a tarball I copy to other machines. Is there any way to do this?
Perhaps
DESTDIR=/var/tmp/ make prefix=/usr install
is what you are looking for?
Quoted 7 lines · Junio C Hamano
Quoted 4 lines · Matthias Lederhofer
Is there any way to disable the "the compile flags have changed, recompile everything" check? I want to built with another prefix than installing to create a tarball I copy to other machines. Is there any way to do this?
Quoted 5 lines
Perhaps
DESTDIR=/var/tmp/ make prefix=/usr install
is what you are looking for?
Thanks, this works.
Quoted 8 lines · Matthias Lederhofer
Quoted 7 lines · Junio C Hamano
Quoted 4 lines · Matthias Lederhofer
Is there any way to disable the "the compile flags have changed, recompile everything" check? I want to built with another prefix than installing to create a tarball I copy to other machines. Is there any way to do this?
Quoted 7 lines
Quoted 5 lines
Perhaps
DESTDIR=/var/tmp/ make prefix=/usr install
is what you are looking for?
Thanks, this works.
By the way, in older days before binary distributions have become _the_ way for the end users to get programs, "install into a saparate place for tarring up" needed to be custom job per package, because Makefiles of many packages were not set up to easily allow it (like DESTDIR= stuff). These days, allowing it is almost a requirement in order to make binary distros' lives easier, so if a program is packaged for some binary distros (say, RPM or deb), often the easiest way to figure out the answer to your question is to see how they build their packages out of the source.