bumped image size
[ovirt-node/TEMP.git] / Makefile.am
blob0b0807a41e728e9c6b535d005986820df6ceea7c
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 SUBDIRS = \
21   gptsync       \
22   recipe
24 EXTRA_DIST =                    \
25   .gitignore                    \
26   ovirt-node.spec               \
27   ovirt-node.spec.in            \
28   ovirt-node-selinux.te         \
29   ovirt-node-selinux.fc         \
30   images/grub-splash.xpm.gz     \
31   images/syslinux-vesa-splash.jpg       \
32   nodeadmin/__init__.py         \
33   nodeadmin/adddomain.py        \
34   nodeadmin/addhost.py          \
35   nodeadmin/addpool.py          \
36   nodeadmin/addvolume.py        \
37   nodeadmin/changehost.py       \
38   nodeadmin/configscreen.py     \
39   nodeadmin/createmeter.py      \
40   nodeadmin/createnetwork.py    \
41   nodeadmin/createuser.py       \
42   nodeadmin/definenet.py        \
43   nodeadmin/destroynetwork.py   \
44   nodeadmin/domainconfig.py     \
45   nodeadmin/halworker.py        \
46   nodeadmin/hostconnect.py      \
47   nodeadmin/hostmenu.py         \
48   nodeadmin/libvirtworker.py    \
49   nodeadmin/listdomains.py      \
50   nodeadmin/listnetworks.py     \
51   nodeadmin/listpools.py        \
52   nodeadmin/mainmenu.py         \
53   nodeadmin/menuscreen.py       \
54   nodeadmin/networkconfig.py    \
55   nodeadmin/netmenu.py          \
56   nodeadmin/nodeadmin.py        \
57   nodeadmin/nodemenu.py         \
58   nodeadmin/poolconfig.py       \
59   nodeadmin/removedomain.py     \
60   nodeadmin/removehost.py       \
61   nodeadmin/removepool.py       \
62   nodeadmin/removevolume.py     \
63   nodeadmin/setup.py            \
64   nodeadmin/startdomain.py      \
65   nodeadmin/startpool.py        \
66   nodeadmin/stopdomain.py       \
67   nodeadmin/stoppool.py         \
68   nodeadmin/storagemenu.py      \
69   nodeadmin/undefinenetwork.py  \
70   nodeadmin/userworker.py       \
71   nodeadmin/utils.py            \
72   nodeadmin/volumeconfig.py     \
73   scripts/collectd.conf.in      \
74   scripts/ovirt                 \
75   scripts/ovirt-awake           \
76   scripts/ovirt-config-boot  \
77   scripts/ovirt-config-boot-wrapper  \
78   scripts/ovirt-config-collectd  \
79   scripts/ovirt-config-hostname  \
80   scripts/ovirt-config-iscsi    \
81   scripts/ovirt-config-logging  \
82   scripts/ovirt-config-networking \
83   scripts/ovirt-config-password \
84   scripts/ovirt-config-setup    \
85   scripts/ovirt-config-storage  \
86   scripts/ovirt-config-uninstall \
87   scripts/ovirt-config-view-logs \
88   scripts/ovirt-early           \
89   scripts/ovirt-firstboot       \
90   scripts/ovirt-functions       \
91   scripts/ovirt-install-node-stateful   \
92   scripts/ovirt-install-node-stateless  \
93   scripts/persist                       \
94   scripts/unpersist                     \
95   scripts/ovirt-post            \
96   scripts/ovirt-process-config  \
97   scripts/ovirt-uninstall-node-stateful \
98   tools/create-ovirt-iso-nodes  \
99   tools/edit-livecd     \
100   tools/livecd-iso-to-iscsi     \
101   tools/livecd-rpms     \
102   tools/livecd-setauth  \
103   kinit/ovirt-kinit             \
104   logrotate/ovirt-logrotate     \
105   logrotate/ovirt-logrotate.conf
107 DISTCLEANFILES = $(PACKAGE)-$(VERSION).tar.gz
109 # For Release: 0..., set _ovirt_dev=1 so that we get extra_release.GIT-
110 # annotated rpm version strings.
111 _ovirt_dev = \
112  $(shell grep -q '^[[:space:]]*Release:[[:space:]]*0' \
113    $(srcdir)/*.spec.in && echo 1 || :)
115 git_head        = $$(git log -1 --pretty=format:%h)
116 GIT_RELEASE     = $$(date --utc +%Y%m%d%H%M%S)git$(git_head)
117 RPMDIR          = $$(rpm --eval '%{_rpmdir}')
118 RPM_FLAGS       = --define "ovirt_cache_dir $(OVIRT_CACHE_DIR)"
119 RPM_FLAGS       += $(if $(_ovirt_dev),--define "extra_release .$(GIT_RELEASE)")
121 rpms: dist
122         rpmbuild $(RPM_FLAGS) -ta $(distdir).tar.gz
124 srpms: dist
125         rpmbuild $(RPM_FLAGS) -ts $(distdir).tar.gz
127 publish: rpms
128         mkdir -p $(OVIRT_CACHE_DIR)
129         rsync -aq $(shell rpm --eval '%{_rpmdir}')/ $(OVIRT_CACHE_DIR)/ovirt/
130         rsync -aq $(shell rpm --eval '%{_srcrpmdir}')/ $(OVIRT_CACHE_DIR)/ovirt/src
131         createrepo $(OVIRT_CACHE_DIR)/ovirt
133 .PHONY: rpms publish srpms