set SELinux enforcing temporary to permissive
[ovirt-node-image.git] / Makefile.am
blobd78fee810f2564b9837a7dfa3471d210d040e1aa
1 # Copyright (C) 2008 Red Hat, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; version 2 of the License.
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 # GNU General Public License for more details.
12 # You should have received a copy of the GNU General Public License
13 # along with this program; if not, write to the Free Software
14 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15 # MA  02110-1301, USA.  A copy of the GNU General Public License is
16 # also available at http://www.gnu.org/copyleft/gpl.html.
18 OVIRT_CACHE_DIR ?= $(HOME)/ovirt-cache
20 EXTRA_DIST =                            \
21   .gitignore                            \
22   ovirt-node-image.spec         \
23   ovirt-node-image.spec.in      \
24   README.krb5                           \
25   common-install.ks                     \
26   common-pkgs.ks                        \
27   common-post.ks                        \
28   ovirt-flash                           \
29   ovirt-flash-static            \
30   ovirt-node-image.ks           \
31   ovirt-pxe
33 git_head        = $$(git log -1 --pretty=format:%h)
34 GIT_RELEASE     = $$(date --utc +%Y%m%d%H%M%S)git$(git_head)
35 RPMDIR          = $$(rpm --eval '%{_rpmdir}')
36 RPM_FLAGS       = --define "ovirt_cache_dir $(OVIRT_CACHE_DIR)"
37 RPM_FLAGS       += $(if $(OVIRT_DEV),--define "extra_release .$(GIT_RELEASE)")
38 # FEDORA_URL env var can be set to the root of a fedora mirror
39 RPM_FLAGS       += $(if $(FEDORA_URL),--define "fedora_url $(FEDORA_URL)")
40 # OVIRT_URL env var can be set to the root of an ovirt.org mirror
41 RPM_FLAGS       += $(if $(OVIRT_URL),--define "ovirt_url $(OVIRT_URL)")
43 rpms: dist
44         rpmbuild $(RPM_FLAGS) -ta $(distdir).tar.gz
46 publish: rpms
47         rsync -aq $(shell rpm --eval '%{_rpmdir}')/ $(OVIRT_CACHE_DIR)/ovirt/
48         createrepo $(OVIRT_CACHE_DIR)/ovirt
50 .PHONY: rpms publish