Skip to content

Commit

Permalink
Simplify build instructions by providing a Makefile
Browse files Browse the repository at this point in the history
This creates a gitignore file to deal with generated files. The Makefile
replaces the manual instructions and makes sure CI and user instructions
are in sync. It even allows for parallel builds, even though the
building is already super fast.
  • Loading branch information
ekohl committed Mar 5, 2024
1 parent ca4a85e commit 06c7f0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ jobs:
run: yum install -y selinux-policy-devel policycoreutils
- name: Build policies
run: |
make -f /usr/share/selinux/devel/Makefile pulpcore_port.pp
make -f /usr/share/selinux/devel/Makefile pulpcore.pp
make -f /usr/share/selinux/devel/Makefile pulpcore_rhsmcertd.pp
make
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.pp
pulpcore_port.fc
pulpcore_port.if
pulpcore_rhsmcertd.fc
pulpcore_rhsmcertd.if
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include /usr/share/selinux/devel/Makefile

all: pulpcore_port.pp pulpcore.pp pulpcore_rhsmcertd.pp
5 changes: 1 addition & 4 deletions staging_docs/admin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ The SELinux policy for Pulp 3.Y releases.
sudo yum install -y selinux-policy-devel policycoreutils
git clone https://github.com/pulp/pulpcore-selinux
cd pulpcore-selinux
make -f /usr/share/selinux/devel/Makefile pulpcore_port.pp
make -f /usr/share/selinux/devel/Makefile pulpcore.pp
make -f /usr/share/selinux/devel/Makefile pulpcore_rhsmcertd.pp
make
```

### Installing
Expand Down

0 comments on commit 06c7f0a

Please sign in to comment.