SHARE DIRECTORY: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
New page: SHARE_DIRECTORY = <Shared Directories> ... Designate directories to be installed in the '''share/''' directory. The directories typically contain data files, but they can have a...
(No difference)

Revision as of 14:40, 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  result  $(G_INSTALL)/share/$(PROJECT)/data/result