blob: 98c682630a930cd63d99de169ac3610b7501b557 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!gmake
#
# Copyright (c) 2008-2010 Aconex. All Rights Reserved.
# Copyright (c) 2004 Silicon Graphics, Inc. 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
PERLMOD = PMDA.pm
INTERFACE = PMDA.xs local.h local.c typemap
TESTCODE = test.pl cvalue.c
PERLDOCS = Changes MANIFEST
LSRCFILES = Makefile.PL $(PERLDOCS) $(PERLMOD) $(INTERFACE) $(TESTCODE)
LPKGDIRT = PCP-PMDA-* MYMETA.yml MYMETA.json
LDIRT = Makefile COPYING PMDA.bs PMDA.c PMDA.o cvalue pm_to_blib blib \
Makefile.old local.o $(LPKGDIRT)
default: dist
MAKEMAKER_OPTIONS = INSTALLDIRS=$(PERL_INSTALLDIRS) INSTALLVENDORMAN3DIR=$(PCP_MAN_DIR)/man3
INSTALLER_OPTIONS = DESTDIR=$$DIST_ROOT
ifeq ($(TARGET_OS),mingw)
PERLMAKE = dmake.exe
else
PERLMAKE = $(MAKE)
endif
PMDA.o: Makefile PMDA.xs
$(PERLMAKE) -f Makefile
Makefile: COPYING Makefile.PL
$(call PERL_MAKE_MAKEFILE)
COPYING:
$(LN_S) $(TOPDIR)/COPYING COPYING
test dist: PMDA.o
rm -rf $(LPKGDIRT)
$(PERLMAKE) -f Makefile $@
include $(BUILDRULES)
install: default
ifneq "$(PACKAGE_DISTRIBUTION)" "debian"
$(call PERL_GET_FILELIST,$(TOPDIR)/perl-pcp-pmda.list,PMDA)
endif
install_perl:
$(PERLMAKE) -f Makefile pure_install $(INSTALLER_OPTIONS)
default_pcp: default
install_pcp: install
|