2 # Copyright (c) 2014 Red Hat.
3 # Copyright (c) 2000,2004 Silicon Graphics, Inc. All Rights Reserved.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 include $(TOPDIR
)/src
/include/builddefs
18 -include .
/GNUlocaldefs
20 SCRIPTS
= cleanconfigs cleantmpdirs
21 LSRCFILES
= $(SCRIPTS
) GNUlocaldefs.in
22 LDIRT
= pack_pcp.bin pack_pro.bin pro.src
23 LDIRDIRT
= deb
$(TOPDIR
)/$(PACKAGE_NAME
)-?.?.?
25 # for clean and clobber
26 SUBDIRS
= tar rpm mac aix sun containers
28 default
install default_pcp install_pcp
: $(SUBDIRS
)
34 @DIST_MANIFEST
=`pwd`/$@.bin
; DIST_ROOT
=/tmp
/pcp-build-
$$$$; \
35 export DIST_MANIFEST DIST_ROOT
; \
36 rm -f
$$DIST_MANIFEST; \
37 echo
=== install === ; \
38 $(MAKE
) -j
1 -C
$(TOPDIR
) install_pcp || exit
$$?
; \
39 if
test ! -z
"$(TAR)"; then \
40 echo
=== tar === && $(MAKE
) -j
1 -C
tar $@ || exit
$$?
; \
42 if
test ! -z
"$(PACKAGE_MAKER)"; then \
43 echo
=== mac
=== && $(MAKE
) -j
1 -C mac
$@ || exit
$$?
; \
45 if
test ! -z
"$(MKINSTALLP)"; then \
46 echo
=== aix
=== && $(MAKE
) -j
1 -C aix
$@ || exit
$$?
; \
48 if
test ! -z
"$(PKGMK)" ; then \
49 echo
=== sun
=== && $(MAKE
) -j
1 -C sun
$@ || exit
$$?
; \
51 test -z
"$$KEEP_DIST_ROOT" && rm -rf
$$DIST_ROOT; echo Done