SHARE DIRECTORY: Difference between revisions

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

Latest revision as of 14:42, 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