~ubuntu-branches/ubuntu/vivid/opendrim-lmp-systemmemory/vivid

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2009-08-19 17:59:51 UTC
  • Revision ID: james.westby@ubuntu.com-20090819175951-5oyo0quauom59ex5
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
# Linux Management Providers (LMP), System Memory provider package
 
3
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
 
4
 
5
# This program is being developed under the "OpenDRIM" project.
 
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
8
 
9
# This program is free software; you can redistribute it and/or
 
10
# modify it under the terms of the GNU General Public License
 
11
# as published by the Free Software Foundation; version 2
 
12
# of the License.
 
13
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU General Public License for more details.
 
18
 
19
# You should have received a copy of the GNU General Public License
 
20
# along with this program; if not, write to the Free Software
 
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
22
#################################################################################
 
23
 
 
24
#################################################################################
 
25
# To contributors, please leave your contact information in this section
 
26
# AND comment your changes in the source code.
 
27
 
28
# Modified by <Author(s)>, <Affiliation>, <Year>
 
29
################################################################################
 
30
 
 
31
VENDOR = OpenDRIM
 
32
 
 
33
VERSION = $(shell cat ./VERSION)
 
34
 
 
35
APP_NAME = opendrim-lmp-systemmemory
 
36
 
 
37
RPM_PACKAGE_DIR = packaging
 
38
 
 
39
PLATFORM = $(shell rpm --eval %_target_cpu)
 
40
 
 
41
WORKING_DIR = $(shell pwd)
 
42
 
 
43
SUBDIRS = Common OpenDRIM_Memory OpenDRIM_EnabledMemoryCapabilities OpenDRIM_RegisteredMemoryProfile OpenDRIM_MemoryCapabilities OpenDRIM_MemoryConformsToProfile OpenDRIM_ComputerSystemMemory test
 
44
 
 
45
postinstall:
 
46
        registration/SystemMemory.sh @CIMNAMESPACE@ $(VENDOR) @CIMSERVER@ @INTEROPNAMESPACE@ $(VERSION) .
 
47
 
 
48
preuninstall:
 
49
        registration/SystemMemory-remove.sh @CIMNAMESPACE@ @CIMSERVER@ @INTEROPNAMESPACE@ .
 
50
 
 
51
test-OpenDRIM_MemoryCapabilities: all
 
52
        make -C test test-OpenDRIM_MemoryCapabilities
 
53
        
 
54
test-OpenDRIM_MemoryConformsToProfile: all
 
55
        make -C test test-OpenDRIM_MemoryConformsToProfile
 
56
        
 
57
test-OpenDRIM_Memory: all
 
58
        make -C test test-OpenDRIM_Memory
 
59
        
 
60
test-OpenDRIM_EnabledMemoryCapabilities: all
 
61
        make -C test test-OpenDRIM_EnabledMemoryCapabilities
 
62
        
 
63
test-OpenDRIM_ComputerSystemMemory: all
 
64
        make -C test test-OpenDRIM_ComputerSystemMemory
 
65
        
 
66
test-OpenDRIM_RegisteredMemoryProfile: all
 
67
        make -C test test-OpenDRIM_RegisteredMemoryProfile
 
68
        
 
69
pkg-src:
 
70
        rm -rf packaging/$(APP_NAME)-$(VERSION)
 
71
        rm -rf .tmp
 
72
        mkdir .tmp
 
73
        cp -r ./* .tmp/
 
74
        rm -rf ./tmp/packaging/
 
75
        mv .tmp packaging/$(APP_NAME)-$(VERSION)
 
76
        tar --directory packaging -zcf packaging/$(APP_NAME)-$(VERSION).tar.gz $(APP_NAME)-$(VERSION)
 
77
        rm -rf packaging/$(APP_NAME)-$(VERSION)
 
78
 
 
79
pkg-rpm: pkg-src
 
80
        mkdir -p $(RPM_PACKAGE_DIR)/rpm/RPMS/$(PLATFORM)
 
81
        mkdir -p $(RPM_PACKAGE_DIR)/rpm/SRPMS
 
82
        mkdir -p $(RPM_PACKAGE_DIR)/rpm/BUILD
 
83
        mkdir -p $(RPM_PACKAGE_DIR)/rpm/SOURCES
 
84
        mkdir -p $(RPM_PACKAGE_DIR)/rpm/tmp
 
85
        - rm -r $(RPM_PACKAGE_DIR)/rpm/BUILD/$(APP_NAME)-root
 
86
        - rm -r $(RPM_PACKAGE_DIR)/rpm/RPMS/$(APP_NAME)-*
 
87
        - rm -r $(RPM_PACKAGE_DIR)/rpm/SRPMS/$(APP_NAME)-*
 
88
        - rm -r $(RPM_PACKAGE_DIR)/rpm/SOURCES/$(APP_NAME)-*
 
89
        mv packaging/$(APP_NAME)-$(VERSION).tar.gz $(RPM_PACKAGE_DIR)/rpm/SOURCES/
 
90
        rpmbuild --define="_topdir $(WORKING_DIR)/$(RPM_PACKAGE_DIR)/rpm" --define="version $(VERSION)" -ba $(RPM_PACKAGE_DIR)/$(APP_NAME).spec
 
91
        
 
92
pkg-deb: pkg-src
 
93
        cp packaging/$(APP_NAME)-$(VERSION).tar.gz packaging/$(APP_NAME)-$(VERSION).orig.tar.gz
 
94
        cd packaging/ && tar axf $(APP_NAME)-$(VERSION).tar.gz
 
95
        cp -R packaging/debian packaging/$(APP_NAME)-$(VERSION)
 
96
        - cd packaging/$(APP_NAME)-$(VERSION) && dpkg-buildpackage -b
 
97
        rm -rf packaging/$(APP_NAME)-$(VERSION)* packaging/*.changes
 
98