source: trunk/oarutils/Makefile @ 48

Last change on this file since 48 was 48, checked in by g7moreau, 12 years ago
  • Begin target install, update and sync...
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1
2CC=mpiCC
3CCFLAGS=-O2
4PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
5
6DESTDIR:=/opt/oar/current
7
8
9.PHONY: all clean distclean install update sync
10
11all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
12
13clean:
14        rm -f *.o
15
16distclean: clean
17        rm -f mpilauncher
18
19install: update
20
21update:
22        @install -d -m 0755 -o root -g root $(DESTDIR)/bin
23        @install -d -m 0755 -o root -g root $(DESTDIR)/man/man1
24        install -m 0755 -o root -g root oar-parexec $(DESTDIR)/bin
25        install -m 0755 -o root -g root oar-dispatch $(DESTDIR)/bin
26        install -m 0755 -o root -g root mpilauncher $(DESTDIR)/bin
27        install -m 0644 -o root -g root oar-parexec.1 $(DESTDIR)/man/man1
28        install -m 0644 -o root -g root oar-dispatch.1 $(DESTDIR)/man/man1
29        install -m 0644 -o root -g root mpilauncher.1 $(DESTDIR)/man/man1
30        install -m 0644 -o root -g root oar-envsh.1 $(DESTDIR)/man/man1
31
32sync:
33        svn update
34
35mpilauncher: mpilauncher.o
36        $(CC) $(CCFLAGS) -o $@ $<
37
38%.o: %.cpp
39        $(CC) $(CCFLAGS) -c $<
40
41%.1: %.cpp
42        sed -re 's#^[/ ]\* ?##; s#^// ?##' $< | pod2man -n $* $(PODFLAG) > $@
43
44%.1: %
45        pod2man -n $* $(PODFLAG) $< > $@
46
47# astyle --style=banner -s3 mpilauncher.cpp
48# perltidy -i=3 -ci=3 -icp -icb -pt=2 -bt=2 -bbt=2 -b oar-parexec
Note: See TracBrowser for help on using the repository browser.