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
RevLine 
[17]1
2CC=mpiCC
3CCFLAGS=-O2
[24]4PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
[17]5
[48]6DESTDIR:=/opt/oar/current
[24]7
[17]8
[48]9.PHONY: all clean distclean install update sync
10
[30]11all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
[17]12
13clean:
14        rm -f *.o
15
16distclean: clean
17        rm -f mpilauncher
18
[48]19install: update
[17]20
[48]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
[17]35mpilauncher: mpilauncher.o
36        $(CC) $(CCFLAGS) -o $@ $<
37
38%.o: %.cpp
39        $(CC) $(CCFLAGS) -c $<
[23]40
41%.1: %.cpp
[29]42        sed -re 's#^[/ ]\* ?##; s#^// ?##' $< | pod2man -n $* $(PODFLAG) > $@
[23]43
[29]44%.1: %
45        pod2man -n $* $(PODFLAG) $< > $@
46
[23]47# astyle --style=banner -s3 mpilauncher.cpp
[41]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.