blob: f97ee88cc34995a23f5cbf5a7df2b29a15216a6f (
plain)
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
41
42
43
44
45
46
47
48
49
|
#
# Copyright (c) 2008-2009 Aconex. All Rights Reserved.
#
# 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 2 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.
#
TOPDIR = ../..
include $(TOPDIR)/src/include/builddefs
SUBDIRS = PMDA LogSummary MMV LogImport
default: $(SUBDIRS)
$(SUBDIRS_MAKERULE)
install: $(SUBDIRS)
$(SUBDIRS_MAKERULE)
ifeq "$(shell [ '$(PACKAGE_DISTRIBUTION)' = cocoa \
-o '$(PACKAGE_DISTRIBUTION)' = macosx \
-o '$(PACKAGE_DISTRIBUTION)' = gentoo \
-o '$(PACKAGE_DISTRIBUTION)' = solaris \
] && echo 1)" "1"
# Gather installed Perl files before packaging
if [ -n "$(DIST_MANIFEST)" ]; then \
if [ "`echo $(TOPDIR)/perl-pcp-*.list`" != "$(TOPDIR)/perl-pcp-*.list" ]; then \
cat $(TOPDIR)/perl-pcp-*.list | while read f; do \
bn=`basename $$f .gz`; \
dn=`dirname $$f`; \
$(INSTALL) -d $$dn || exit 1; \
src=`find */blib -name $$bn`; \
if [ -x $$src ] ; then mode=0755; else mode=0644; fi; \
$(INSTALL) -m $$mode $$src $$dn/$$bn || exit 1; \
done; \
fi; \
fi
endif
include $(BUILDRULES)
default_pcp : default
install_pcp : install
|