-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 673 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESTDIR ?=
DATADIR ?= /usr/share
UNITDIR ?= /etc/systemd/system
SELINUX_TARGET := faketpm
SELINUX_MODULE := ${SELINUX_TARGET:=.pp.bz2}
all: $(SELINUX_MODULE)
%.pp.bz2: %.pp
@echo Compressing $^ -\ $@
bzip2 -9 -f $^
%.pp: %.te
make -f $(DATADIR)/selinux/devel/Makefile $@
clean:
rm -f $(SELINUX_TARGET).{fc,if,tc,pp,pp.bz2}
rm -rf tmp/
rm -f faketpm-*.{spec,tar.gz,noarch.rpm,src.rpm}
rm -rf noarch/ SRPMS/
install:
install -Dpm0644 -t $(DESTDIR)$(UNITDIR) faketpm.service
install -Dpm0644 -t $(DESTDIR)$(DATADIR)/selinux/devel/include/contrib $(SELINUX_TARGET).if
install -Dpm0644 -t $(DESTDIR)$(DATADIR)/selinux/packages $(SELINUX_MODULE)
.PHONY: install