Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wrabcak committed Jun 3, 2016
1 parent 2bc84ec commit 4a6ce94
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
TARGETS?=docker
MODULES?=${TARGETS:=.pp.bz2}
SHAREDIR?=/usr/share

all: ${TARGETS:=.pp.bz2}

%.pp.bz2: %.pp
@echo Compressing $^ -\> $@
bzip2 -9 $^

%.pp: %.te
make -f ${SHAREDIR}/selinux/devel/Makefile $@

clean:
rm -f *~ *.tc *.pp *.pp.bz2
rm -rf tmp *.tar.gz

man: install
sepolicy manpage --domain ${TARGETS}_t

install:
semodule -i ${TARGETS}

0 comments on commit 4a6ce94

Please sign in to comment.