Use Make macros

This commit is contained in:
<first-name-unset> <last-name-unset> 2020-08-18 23:50:16 +00:00 committed by mschorm
commit 4b7fb615be

View file

@ -95,14 +95,14 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
# GCC 10 defaults to -fno-common which
# https://gcc.gnu.org/gcc-10/changes.html (see C section)
make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon"
make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-recovery
make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-regclass
%make_build CFLAGS="%{optflags} -fcommon"
%make_build CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-recovery
%make_build CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-regclass
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
make %{?_smp_mflags} DESTDIR=%{buildroot} install -C src/sql/pgpool-recovery
make %{?_smp_mflags} DESTDIR=%{buildroot} install -C src/sql/pgpool-regclass
%make_install
%make_install -C src/sql/pgpool-recovery
%make_install -C src/sql/pgpool-regclass
install -d %{buildroot}%{_datadir}/%{short_name}
install -d %{buildroot}%{_sysconfdir}/%{short_name}