Last change
on this file since 48 was
48,
checked in by g7moreau, 13 years ago
|
- Begin target install, update and sync...
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[17] | 1 | |
---|
| 2 | CC=mpiCC |
---|
| 3 | CCFLAGS=-O2 |
---|
[24] | 4 | PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata' |
---|
[17] | 5 | |
---|
[48] | 6 | DESTDIR:=/opt/oar/current |
---|
[24] | 7 | |
---|
[17] | 8 | |
---|
[48] | 9 | .PHONY: all clean distclean install update sync |
---|
| 10 | |
---|
[30] | 11 | all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1 |
---|
[17] | 12 | |
---|
| 13 | clean: |
---|
| 14 | rm -f *.o |
---|
| 15 | |
---|
| 16 | distclean: clean |
---|
| 17 | rm -f mpilauncher |
---|
| 18 | |
---|
[48] | 19 | install: update |
---|
[17] | 20 | |
---|
[48] | 21 | update: |
---|
| 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 | |
---|
| 32 | sync: |
---|
| 33 | svn update |
---|
| 34 | |
---|
[17] | 35 | mpilauncher: 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.