SHARE DIRECTORY: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
install:  installshare
install:  installshare
     rm    -r -f  $(G_INSTALL)/share/$(PROJECT)/data/result
     rm    -r -f  $(G_INSTALL)/share/$(PROJECT)/data/result
     cp    -r -f  result  $(G_INSTALL)/share/$(PROJECT)/data/result
     cp    -r -f  $(GROOT)/data/$PROJECT/result  $(G_INSTALL)/share/$(PROJECT)/data/result
</pre>
</pre>

Revision as of 14:41, 7 March 2011

SHARE_DIRECTORY = <Shared Directories>  ... 

Designate directories to be installed in the share/ directory. The directories typically contain data files, but they can have any type of file. The directories will be installed in:

$GTO/install_$GARCH/share/$PROJECT/


Note that the directories are installed at the top level of the target directory. In order to set up multiple levels of directories you will need to stage them within your project with the desired layout. For example if you wanted to set up a directory data/ with a subdirectory data/result/ you might write this as:

SHARE_DIRECTORY = data

install:
    rm -r  -f  data/result
    cp -r $(GROOT)/data/$PROJECT/result  data
    $(MAKE)  installshare


You can also avoid staging by directly installing the data/result/ directory:

SHARE_DIRECTORY = data

install:  installshare
    rm     -r -f  $(G_INSTALL)/share/$(PROJECT)/data/result
    cp     -r -f  $(GROOT)/data/$PROJECT/result  $(G_INSTALL)/share/$(PROJECT)/data/result