File: Makefile.am

package info (click to toggle)
globus-gfork 0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,604 kB
  • ctags: 396
  • sloc: sh: 8,633; ansic: 3,043; makefile: 311
file content (76 lines) | stat: -rw-r--r-- 2,195 bytes parent folder | download | duplicates (49)
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
68
69
70
71
72
73
74
75
76
include $(top_srcdir)/globus_automake_pre

flavordir = $(GLOBUS_LOCATION)/etc/$(PACKAGE)

FILELIST_FILES = noflavor_data.filelist \
	$(GLOBUS_FLAVOR_NAME)_dev.filelist \
	noflavor_doc.filelist \
	$(GLOBUS_FLAVOR_NAME)_pgm.filelist \
	$(GLOBUS_FLAVOR_NAME)_pgm_static.filelist \
	$(GLOBUS_FLAVOR_NAME)_rtl.filelist


METADATA_FILES = \
	pkg_data_noflavor_data.gpt \
	pkg_data_$(GLOBUS_FLAVOR_NAME)_dev.gpt \
	pkg_data_noflavor_doc.gpt \
	pkg_data_$(GLOBUS_FLAVOR_NAME)_pgm.gpt \
	pkg_data_$(GLOBUS_FLAVOR_NAME)_pgm_static.gpt \
	pkg_data_$(GLOBUS_FLAVOR_NAME)_rtl.gpt

pkg_DATA = $(FILELIST_FILES) $(METADATA_FILES)

filelist_file: $(MAKEFILE_AMS)
	@mydir=`pwd`; \
	if test -f "master.filelist"; then \
		rm $(FILELIST_FILE); \
	fi

all_filelists: filelist_file
	 @(cd .. && $(MAKE) $(AM_MAKEFLAGS) filelist) \
## This trick allows "-k" to keep its natural meaning when running a
## recursive rule.
	  || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;


$(FILELIST_FILES): sort_filelist

sort_filelist: all_filelists
	@if test "$(GPT_IS_2)" = "yes"; then \
		$(GPT_LOCATION)/sbin/gpt_sort_filelist  \
		--flavor=$(GLOBUS_FLAVOR_NAME) \
		-pkg=$(srcdir)/pkg_data_src.gpt.in ./master.filelist \
		$(GPT_LINKTYPE); \
	else \
		$(GPT_LOCATION)/sbin/gpt_sort_filelist  \
		--flavor=$(GLOBUS_FLAVOR_NAME) \
		./master.filelist \
		$(GPT_LINKTYPE); \
	fi

# Override the normal install target to avoid dying when a given
# kind of metadata file is missing by calling "true"
install-pkgDATA: $(pkg_DATA)
	@$(NORMAL_INSTALL)
	test -z "$(pkgdir)" || $(mkdir_p) "$(DESTDIR)$(pkgdir)";
	@list='$(pkg_DATA)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(pkgDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdir)/$$f'"; \
	  $(pkgDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdir)/$$f"; \
	done || true

$(METADATA_FILES): pkg_data_src.gpt
	@$(GPT_LOCATION)/sbin/gpt_generate_bin_pkg_data  \
	--flavor=$(GLOBUS_FLAVOR_NAME) pkg_data_src.gpt


distclean-local:
	@if test -f master.filelist; then \
		rm *.filelist; \
	fi; \
	if test -f pkg_data_noflavor_data.gpt; then \
		rm pkg_data_*.gpt; \
	fi

include $(top_srcdir)/globus_automake_post