Simplify the build-docs target
This commit is contained in:
parent
dc4ca7a142
commit
01be486292
@ -3,6 +3,9 @@
|
|||||||
%define monolithic n
|
%define monolithic n
|
||||||
%if %{?BUILD_DOC:0}%{!?BUILD_DOC:1}
|
%if %{?BUILD_DOC:0}%{!?BUILD_DOC:1}
|
||||||
%define BUILD_DOC 1
|
%define BUILD_DOC 1
|
||||||
|
%define docs-target install-docs
|
||||||
|
%else
|
||||||
|
%define docs-target %nil
|
||||||
%endif
|
%endif
|
||||||
%if %{?BUILD_TARGETED:0}%{!?BUILD_TARGETED:1}
|
%if %{?BUILD_TARGETED:0}%{!?BUILD_TARGETED:1}
|
||||||
%define BUILD_TARGETED 1
|
%define BUILD_TARGETED 1
|
||||||
@ -287,11 +290,7 @@ make clean
|
|||||||
%installCmds mls mls n deny
|
%installCmds mls mls n deny
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{BUILD_DOC}
|
make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-headers %{docs-target}
|
||||||
make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-docs
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-headers
|
|
||||||
|
|
||||||
mkdir %{buildroot}%{_usr}/share/selinux/devel/
|
mkdir %{buildroot}%{_usr}/share/selinux/devel/
|
||||||
mkdir %{buildroot}%{_usr}/share/selinux/packages/
|
mkdir %{buildroot}%{_usr}/share/selinux/packages/
|
||||||
|
Loading…
Reference in New Issue
Block a user