Commit d65cc5b1 authored by Lasse Karstensen's avatar Lasse Karstensen

Use macros instead, add some safeguards.

Inspired by pull request to libvmod-ipcast from Martin Probst.
parent 9d9bf1bb
...@@ -20,14 +20,15 @@ Example VMOD ...@@ -20,14 +20,15 @@ Example VMOD
%build %build
%configure --prefix=/usr/ %configure --prefix=/usr/
make %{__make} %{?_smp_mflags}
make check %{__make} %{?_smp_mflags} check
%install %install
make install DESTDIR=%{buildroot} [ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%clean %clean
rm -rf %{buildroot} [ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment