forked from ovn-kubernetes/ovn-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 1.33 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (C) 2018 Red Hat Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
# Build distribution SRPM and RPMs based on version number specified
# in the openvswitch-ovn-kubernetes.spec file
rpms: srpm rpm
# Build snapshot RPMs based on the commit number in the
# the openvswitch-ovn-kubernetes.spec.snapshot file
# The commit must be in https://github.com/openvswitch/ovn-kubernetes
snapshot: rpmsnap
dist: openvswitch-ovn-kubernetes.spec
spectool -g openvswitch-ovn-kubernetes.spec
srpm: dist
rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \
--define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" \
-bs openvswitch-ovn-kubernetes.spec
rpm: dist
rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \
--define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" \
-ba openvswitch-ovn-kubernetes.spec
distsnap: openvswitch-ovn-kubernetes.spec.snapshot
spectool -g openvswitch-ovn-kubernetes.spec.snapshot
rpmsnap: distsnap
rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \
--define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" \
-ba openvswitch-ovn-kubernetes.spec.snapshot
.PHONY: clean
clean:
-rm -rf *~ \#* .#*