Changeset 49 for trunk/oarutils/Makefile


Ignore:
Timestamp:
Dec 13, 2011, 9:23:31 AM (9 years ago)
Author:
g7moreau
Message:
  • General makefile width install and update
  • Cut long line
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oarutils/Makefile

    r48 r49  
    11
    2 CC=mpiCC
    3 CCFLAGS=-O2
    4 PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
     2# General configuration
    53
    6 DESTDIR:=/opt/oar/current
     4CC         := mpiCC
     5CCFLAGS    := -O2
     6PODFLAG    := -c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
    77
     8TARGET_C   := mpilauncher
     9TARGET_MAN := mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
     10
     11PREFIX     :=/opt/oar/current
     12PREFIX_MAN  =$(PREFIX)/man
     13
     14
     15# User specific configuration
     16
     17sinclude config.mk
     18
     19
     20# Target and rules
    821
    922.PHONY: all clean distclean install update sync
    1023
    11 all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
     24all: $(TARGET_C) $(TARGET_MAN)
    1225
    1326clean:
     
    2033
    2134update:
    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
     35        @install -d -m 0755 -o root -g root $(PREFIX)/bin
     36        @install -d -m 0755 -o root -g root $(PREFIX_MAN)/man1
     37        install -m 0755 -o root -g root oar-parexec $(PREFIX)/bin
     38        install -m 0755 -o root -g root oar-dispatch $(PREFIX)/bin
     39        install -m 0755 -o root -g root mpilauncher $(PREFIX)/bin
     40        install -m 0644 -o root -g root oar-parexec.1 $(PREFIX_MAN)/man1
     41        install -m 0644 -o root -g root oar-dispatch.1 $(PREFIX_MAN)/man1
     42        install -m 0644 -o root -g root mpilauncher.1 $(PREFIX_MAN)/man1
     43        install -m 0644 -o root -g root oar-envsh.1 $(PREFIX_MAN)/man1
    3144
    3245sync:
Note: See TracChangeset for help on using the changeset viewer.