Rework pcp module to pcpupstream module
[pcp.git] / src / selinux / GNUmakefile
blobc54ed04a7446b0a288df3c3d7725bb8b59a7d5b9
1 # Copyright (c) 2017 Red Hat.
2 #
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2 of the License, or (at your
6 # option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 # for more details.
14 TOPDIR = ../..
15 include $(TOPDIR)/src/include/builddefs
16 -include ./GNUlocaldefs
17 IAM = pcpupstream
19 default: default_pcp
21 include $(BUILDRULES)
22 #ifeq "$(ENABLE_SELINUX)" "true"
23 default_pcp:
24 make -f /usr/share/selinux/devel/Makefile
25 #else
26 #endif
28 install_pcp install: default
29 $(INSTALL) -m 755 -d $(PCP_SELINUX_DIR)
30 $(INSTALL) -m 600 $(IAM).pp $(PCP_SELINUX_DIR)/$(IAM).pp
31 # $(INSTALL) -m 644 $(IAM).if /usr/share/selinux/devel/include/contrib