Changeset 1018 for trunk/Makefile.in


Ignore:
Timestamp:
Jun 8, 2008 6:24:34 PM (13 years ago)
Author:
gah
Message:

Massive changes: New directory/file layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r951 r1018  
    88mandir          = @mandir@
    99prefix          = @prefix@
     10srcdir          = @srcdir@
    1011
    1112INSTALL         = @INSTALL@
    12 INSTALL_PROGRAM = ${INSTALL} -m 755
    13 INSTALL_DATA    = ${INSTALL} -m 644
    14 INSTALL_SCRIPT  = ${INSTALL} -m 644
    15 
     13SHELL           = @SHELL@
     14RM              = rm -f
     15VPATH           = $(srcdir)
    1616
    1717build_date      := $(shell date +%Y%m%d)
     
    1919os              := $(shell uname -s)
    2020bn              := $(shell basename $(prefix))
    21 TarfileBasename=rappture-$(os)-$(machine)-$(build_date)
    2221
    23 # fix this before commiting
    24 all: rplib build_bindings build_gui
    25 install: install_rplib install_bindings install_gui install_examples
    26         ${INSTALL_PROGRAM}  gui/apps/rappture      $(bindir)/rappture
    27         ${INSTALL_DATA}     gui/apps/rappture.env  $(bindir)/rappture.env
    28         ${INSTALL_PROGRAM}  gui/apps/driver        $(bindir)/driver
    29         ${INSTALL_PROGRAM}  gui/apps/nanovis-test  $(bindir)/nanovis-test
    30         ${INSTALL_PROGRAM}  gui/apps/rerun         $(bindir)/rerun
    31         ${INSTALL_PROGRAM}  gui/apps/simsim        $(bindir)/simsim
    32         ${INSTALL_PROGRAM}  gui/apps/simsim.tcl    $(bindir)/simsim.tcl
    33         find $(prefix) -name .svn | xargs rm -rf
     22tarfile         = rappture-$(os)-$(machine)-$(build_date).tar.gz
    3423
    35 ###########################################################################
    36 # Makefile - build and install all Rappture libraries
    37 ###########################################################################
     24ENABLE_GUI = @ENABLE_GUI@
    3825
    39 
    40 build_gui:
    41         @if test "x@ENABLE_GUI@" == "xyes" ; then \
    42                 $(MAKE) -C gui; \
    43         fi
    44 
    45 install_gui:
    46         @if test "x@ENABLE_GUI@" == "xyes" ; then \
    47                 $(MAKE) -C gui install; \
    48         fi
    49 
    50 rplib:
    51         @if ! test -d "include"; then \
    52                 mkdir include;\
    53         fi
    54         $(MAKE) -C src2/core librappture2.a librappture2.so.0.0
    55         $(MAKE) -C src librappture
    56 
    57 install_rplib:
    58         $(MAKE) -C src2/core install
    59         $(MAKE) -C src install_rappture
    60 
    61 build_bindings: build_matlab build_octave build_python build_perl
    62 
    63 install_bindings: install_matlab install_octave install_python install_perl install_tcl
    64 
    65 #############################################################################
    66 # build rappture examples
    67 # examples:
    68 #       - compile rappture examples in rappture/examples
    69 #############################################################################
    70 build_examples:
    71 ifneq ($(strip @F77@),)
    72         $(MAKE) -C examples/app-fermi/fortran
    73 endif
    74 ifneq ($(strip @CC@),)
    75         $(MAKE) -C examples/app-fermi/cee
    76         $(MAKE) -C examples/app-fermi/wrapper/cee
    77         $(MAKE) -C examples/c-example
     26ifneq ($(ENABLE_GUI),)
     27   GUI = gui
    7828endif
    7929
    80 install_examples: build_examples
    81         cp -r examples $(prefix)
    82         rm -f $(prefix)/examples/demo.bash.in
    83         find $(prefix)/examples -name .svn | xargs rm -rf
     30.PHONY: src gui lang test examples
    8431
     32all: src gui lang examples test
    8533
     34src:
     35        $(MAKE) -C src all
     36gui:
     37        $(MAKE) -C gui all
     38lang:
     39        $(MAKE) -C lang all
     40examples:
     41        $(MAKE) -C examples all
     42test:
     43        #$(MAKE) -C test all
    8644
    87 #############################################################################
    88 
    89 #tcl bindings
    90 #cd tcl; @TCLSH@ install.tcl
    91 install_tcl:
    92         @if test "x@TCLSH@" != "x" ; then \
    93                 cd tcl; $(bindir)/tclsh install.tcl; cd -;\
    94                 $(MAKE) -C src/tcl install; \
    95         fi
    96 
    97 # matlab bindings
    98 build_matlab:
    99         @if test "x@MEX@" != "x" ; then \
    100                 $(MAKE) -C src/matlab; \
    101         fi
    102 
    103 install_matlab: build_matlab
    104         @if test "x@MEX@" != "x" ; then \
    105                 $(MAKE) -C src/matlab install; \
    106         fi
    107 
    108 # octave bindings
    109 build_octave:
    110         @if test "x@MKOCTFILE@" != "x" ; then \
    111                 $(MAKE) -C src/octave; \
    112         fi
    113 
    114 install_octave: build_octave
    115         @if test "x@MKOCTFILE@" != "x" ; then \
    116                 $(MAKE) -C src/octave install; \
    117         fi
    118 
    119 build_python:
    120         @if test "x@PYTHON@" != "x" ; then \
    121                 set -x; \
    122                 cd python; \
    123                 @PYTHON@ setup.py \
    124                         build_ext \
    125                         --library-dirs=$(libdir):../src \
    126                         --include-dirs=$(includedir) \
    127                         build; \
    128         fi
    129 
    130 install_python: build_python
    131         @if test "x@PYTHON@" != "x" ; then \
    132                 cd python; \
    133                 @PYTHON@ setup.py install --prefix=$(prefix); \
    134         fi
    135 
    136 build_perl:
    137         @if test "x@PERL@" != "x" ; then \
    138                 cd perl; \
    139                 @PERL@ Makefile.PL INSTALLSITELIB=$(libdir)/perl5 INSTALLSITEARCH=$(libdir)/perl5 INSTALLSITEMAN3DIR=$(mandir)/man3; \
    140                 $(MAKE); LD_LIBRARY_PATH=$(libdir):../src $(MAKE) test; \
    141         fi
    142 
    143 install_perl: build_perl
    144         @if test "x@PERL@" != "x" ; then \
    145                 $(MAKE) -C perl install; \
    146         fi
    147 
    148 build_pkgs:
    149         @if ! test -d "bin"; then \
    150                 mkdir bin;\
    151         fi
    152         # building rappture binary package
    153         cd $(prefix)/..; tar czf @RP_BASE@/bin/$(TarfileBasename).tar.gz $(bn)
     45install:
     46        $(MAKE) -C examples install
     47        $(MAKE) -C gui install
     48        $(MAKE) -C lang install
     49        $(MAKE) -C src install
    15450
    15551clean:
    156         $(MAKE) -C examples/app-fermi/cee clean
    157         $(MAKE) -C examples/app-fermi/fortran clean
    158         $(MAKE) -C examples/app-fermi/wrapper/cee clean
    159         $(MAKE) -C examples/c-example clean
     52        $(MAKE) -C examples clean
    16053        $(MAKE) -C gui clean
    161         @if test -r "perl/Makefile" ; then \
    162                 $(MAKE) -C perl clean; \
    163         fi
    164         rm -rf python/build
     54        $(MAKE) -C lang clean
    16555        $(MAKE) -C src clean
    166         $(MAKE) -C src/matlab clean
    167         $(MAKE) -C src/octave clean
    168         $(MAKE) -C src/tcl clean
    169         $(MAKE) -C src2/core clean
    170         rm -f include/*
     56        $(MAKE) -C test clean
    17157
    172 distclean:
    173         rm -f examples/demo.bash
    174         $(MAKE) -C examples/app-fermi/cee distclean
    175         $(MAKE) -C examples/app-fermi/fortran distclean
    176         $(MAKE) -C examples/app-fermi/wrapper/cee distclean
    177         $(MAKE) -C examples/c-example distclean
     58distclean:
     59        $(MAKE) -C examples distclean
    17860        $(MAKE) -C gui distclean
    179         $(MAKE) -C perl clean; rm perl/Makefile.PL
    180         rm -rf python/build python/setup.py
     61        $(MAKE) -C lang distclean
    18162        $(MAKE) -C src distclean
    182         $(MAKE) -C src/matlab distclean
    183         $(MAKE) -C src/octave distclean
    184         $(MAKE) -C src/tcl distclean
    185         $(MAKE) -C src2/core distclean
    18663        $(MAKE) -C test distclean
    187         rm -f gui/apps/rappture gui/apps/simsim gui/apps/rappture.env;
    188         rm -rf Makefile config.status config.log bin;
    189         rm -f include/*
     64        $(RM) Makefile config.status config.log  *~
     65
     66package:
     67        tar -C $(prefix) -czf $(tarfile) .
Note: See TracChangeset for help on using the changeset viewer.