[ansible][fedora] Update package name
[barometer.git] / src / collectd-openstack-plugins / Makefile
1 # makefile to manage COLLECTD_OPENSTACK package
2 #
3
4 # Copyright 2015-2019 Intel Corporation and OPNFV. All rights reserved.
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18
19 #
20 # Contributors:
21 #   Aihua Li, Huawei Technologies.
22 #   Martin Klozik, Intel Corporation.
23
24 include ../mk/master.mk
25 include ../package-list.mk
26
27 .PHONY: force_make install
28
29 WORK_DIR = collectd-openstack-plugins
30 TAG_DONE_FLAG = $(WORK_DIR)/.$(COLLECTD_OPENSTACK_TAG).tag.done
31
32 all: force_make install
33         @echo "Finished making $(WORK_DIR) "
34
35 INSTALL_TARGET = force_make
36
37 force_make: $(WORK_DIR)
38         @echo "force make"
39         $(AT)cd $(WORK_DIR) && git checkout $(COLLECTD_OPENSTACK_TAG)
40         @echo "Make done"
41
42 install:
43         @echo "install done"
44
45 # hard way to clean and clobber
46 clean:
47         $(AT)cd $(WORK_DIR) && git clean -xfd *.o
48 clobber:
49         $(AT)rm -rf $(WORK_DIR)
50
51 # distclean is for developer who would like to keep the
52 # clone git repo, saving time to fetch again from url
53 distclean:
54         $(AT)cd $(WORK_DIR) && git clean -xfd && git checkout -f
55
56 test:
57         @echo "Make test in $(WORK_DIR) (stub) "
58
59 sanity:
60         @echo "Make sanity in $(WORK_DIR) (stub) "
61
62 $(WORK_DIR):
63         $(AT)git clone $(COLLECTD_OPENSTACK_URL) $(WORK_DIR)
64