File: Makefile.am

package info (click to toggle)
globus-gram-job-manager-sge 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,488 kB
  • sloc: sh: 9,757; ansic: 1,016; perl: 893; makefile: 324
file content (56 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download
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
include $(top_srcdir)/globus_automake_pre
include $(top_srcdir)/globus_automake_pre_top

SUBDIRS = seg pkgdata doxygen

## globussysconf = [ DATA ]
globussysconfdir = ${sysconfdir}/globus
globussysconf_DATA = globus-sge.conf

## gridservices = [ DATA ]
gridservicesdir = ${sysconfdir}/grid-services/available
gridservices_DATA = jobmanager-sge-poll jobmanager-sge-seg

## gramperlmodule = [ DATA ]
gramperlmoduledir = ${perlmoduledir}/Globus/GRAM/JobManager
gramperlmodule_DATA = sge.pm

## validation = [ DATA ]
validationdir = $(datadir)/globus/globus_gram_job_manager
validation_DATA = sge.rvf

doc_DATA = AUTHORS CREDITS LICENSE LICENSE.GTPL LICENSE.LGPL

AT=@
jobmanager-sge-poll: jobmanager-sge-poll.in
	sed -e "s|$(AT)sbindir$(AT)|$(sbindir)|" \
	    -e "s|$(AT)sysconfdir$(AT)|$(sysconfdir)|" < $< > $@

jobmanager-sge-seg: jobmanager-sge-seg.in
	sed -e "s|$(AT)sbindir$(AT)|$(sbindir)|" \
	    -e "s|$(AT)sysconfdir$(AT)|$(sysconfdir)|" < $< > $@



EXTRA_DIST = globus-sge.conf.in sge.pm $(doc_DATA) $(validation_DATA) \
        jobmanager-sge-poll.in jobmanager-sge-seg.in

CLEANFILES = jobmanager-sge-poll jobmanager-sge-seg

# Install link to available file after all other install happens
# native packages can remove this and use globus-gatekeeper-admin to deal
# with the link
if SEG_ENABLED_COND
install-data-hook:
	cd $(DESTDIR)$(gridservicesdir)/..; \
	[ -L "jobmanager-sge" ] || \
	ln -s available/jobmanager-sge-seg jobmanager-sge
else
install-data-hook:
	cd $(DESTDIR)$(gridservicesdir)/..; \
	[ -L "jobmanager-sge" ] || \
	ln -s available/jobmanager-sge-poll jobmanager-sge
endif

include $(top_srcdir)/globus_automake_post
include $(top_srcdir)/globus_automake_post_top