Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify build instructions by providing a Makefile #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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 build
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
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
include /usr/share/selinux/devel/Makefile

build: pulpcore_port.pp pulpcore.pp pulpcore_rhsmcertd.pp ## Build SELinux policies

help: ## Show this help.
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)

Expand All @@ -7,4 +11,4 @@ docs: ## Build unified docs.
servedocs: ## Serves unified docs.
pulp-docs serve

.PHONY: docs servedocs help
.PHONY: build docs servedocs help
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 build
```

### Installing
Expand Down
Loading