Makefile.package 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# this is <Makefile.package>
# ----------------------------------------------------------------------------
# $Id: $
# Copyright (c) 2011 by Daniel Armbruster 
# ----
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
# ----
# Daniel Armbruster 29/04/2011
# 
# REVISIONS and CHANGES
# 29/04/2011	V1.0	Daniel Armbruster
# ----------------------------------------------------------------------------
# 
Daniel Armbruster's avatar
Daniel Armbruster committed
25
# Makefile which provides building a any2matlab package. 
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# USAGE: 
#  - make -f Makefile.package fullpackage
#  Rule to create a full any2matlab package.
# 
# ----------------------------------------------------------------------------

CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))

$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)

#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
.PHONY: fullpackage
fullpackage: $(TF_MAKEPKG)
	$(MAKE) -f $< \
  	PACKAGE=any2matlabWithLibs \
Daniel Armbruster's avatar
Daniel Armbruster committed
47
    PACKAGEEXPORT="branches/any2matlab0.4/src/matlab/any2matlab:src " \
Daniel Armbruster's avatar
Daniel Armbruster committed
48
		PACKAGEEXPORT+="branches/any2matlab0.4/src/matlab/any2matlab/Makefile.package:Makefile " \
Daniel Armbruster's avatar
Daniel Armbruster committed
49
		PACKAGEEXPORT+="branches/any2matlab0.4/src/matlab/any2matlab/README.2nd:README.2nd " \
50
51
52
    PACKAGETARGETS="src:all" \
    PACKAGELIBS="libaff:libtime:libsffxx:libgsexx:libdatrwxx"
endif
Daniel Armbruster's avatar
Daniel Armbruster committed
53

54
# ----- END OF Makefile.package -----