1
include $(top_srcdir)/globus_automake_pre
3
FILELIST_FILES = noflavor_data.filelist \
4
$(GLOBUS_FLAVOR_NAME)_dev.filelist \
5
noflavor_doc.filelist \
6
$(GLOBUS_FLAVOR_NAME)_pgm.filelist \
7
$(GLOBUS_FLAVOR_NAME)_pgm_static.filelist \
8
$(GLOBUS_FLAVOR_NAME)_rtl.filelist
12
pkg_data_noflavor_data.gpt \
13
pkg_data_$(GLOBUS_FLAVOR_NAME)_dev.gpt \
14
pkg_data_noflavor_doc.gpt \
15
pkg_data_$(GLOBUS_FLAVOR_NAME)_pgm.gpt \
16
pkg_data_$(GLOBUS_FLAVOR_NAME)_pgm_static.gpt \
17
pkg_data_$(GLOBUS_FLAVOR_NAME)_rtl.gpt
19
pkg_DATA = $(FILELIST_FILES) $(METADATA_FILES)
21
pkgconfdir = @pkgconfdir@
24
pkgconf_DATA = @pkgconffile@
26
filelist_file: $(MAKEFILE_AMS)
27
@for p in $(FILELIST_FILES); do \
28
if test -f "$$p"; then \
33
$(pkg_DATA): all_filelists
35
all_filelists: filelist_file
36
@(cd .. && $(MAKE) $(AM_MAKEFLAGS) filelist) \
37
## This trick allows "-k" to keep its natural meaning when running a
39
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;
43
# Override the normal install target to avoid dying when a given
44
# kind of metadata file is missing by calling "true"
45
install-pkgDATA: $(pkg_DATA)
47
test -z "$(pkgdir)" || $(mkinstalldirs) "$(DESTDIR)$(pkgdir)";
48
@list='$(pkg_DATA)'; for p in $$list; do \
49
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
50
f=`echo $$p | sed -e 's|^.*/||'`; \
51
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pkgdir)/$$f'"; \
52
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pkgdir)/$$f"; \
54
@list='$(pkg_DATA)'; for p in $$list; do \
55
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
56
f=`echo $$p | sed -e 's|^.*/||'`; \
57
if expr $$p : '.*filelist$$' > /dev/null ; then \
58
if test `cat $$d$$p | wc -l` = 2; then \
59
listtype=`echo "$$p" | sed -e 's!\.filelist!!'`; \
60
rm "$(DESTDIR)$(pkgdir)/$$f" ; \
61
rm "$(DESTDIR)$(pkgdir)/pkg_data_$${listtype}.gpt"; \
66
$(METADATA_FILES): pkg_data_src.gpt
67
@$(GPT_LOCATION)/sbin/gpt_generate_bin_pkg_data \
68
--flavor=$(GLOBUS_FLAVOR_NAME) pkg_data_src.gpt
70
EXTRA_DIST = $(pkgconffile_in)
73
@if test -f master.filelist; then \
76
if test -f pkg_data_noflavor_data.gpt; then \
80
include $(top_srcdir)/globus_automake_post