-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (44 loc) · 1.35 KB
/
Makefile
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
PACKAGE ?= slurm-fhcrc-plugins
LIBDIR ?= /usr/lib
BINDIR ?= /usr/bin
SBINDIR ?= /sbin
LIBEXECDIR ?= /usr/sbin
export LIBNAME LIBDIR BINDIR SBINDIR LIBEXECDIR PACKAGE
CFLAGS = -Wall -ggdb
PLUGINS =
LIBRARIES =
SUBDIRS = \
./slurm-spank-plugins \
./slurm-spank-plugins/use-env \
./slurm-spank-x11
all:
make -C ./slurm-spank-plugins tmpdir.so
make -C ./slurm-spank-plugins/use-env
make -C ./slurm-spank-x11
.SUFFIXES: .c .o .so
.c.o:
$(CC) $(CFLAGS) -o $@ -fPIC -c $<
.o.so:
$(CC) -shared -o $*.so $< $(LIBS)
subdirs:
@for d in $(SUBDIRS); do make -C $$d; done
clean: subdirs-clean
rm -f *.so *.o lib/*.o
install:
@mkdir -p --mode=0755 $(DESTDIR)$(LIBDIR)/slurm
install --mode=0755 ./slurm-spank-plugins/tmpdir.so \
$(DESTDIR)$(LIBDIR)/slurm;
make -C ./slurm-spank-plugins/use-env DESTDIR=$(DESTDIR) install;
make -C ./slurm-spank-x11 DESTDIR=$(DESTDIR) install;
subdirs-clean:
@for d in $(SUBDIRS); do make -C $$d clean; done
slurm-spank-plugins:
git clone https://code.google.com/p/slurm-spank-plugins
slurm-spank-x11:
git clone git://github.com/edf-hpc/slurm-spank-x11.git
orig: slurm-spank-plugins slurm-spank-x11
cd .. && tar czf slurm-fhcrc-plugins_0.25.1.orig.tar.gz \
--exclude='.git' --exclude='.gitignore' \
slurm-fhcrc-plugins/Makefile \
slurm-fhcrc-plugins/README.md \
slurm-fhcrc-plugins/slurm-spank-*