It needs to write install term in Makefile of my sources.
Therefore, I try install term in my Makefile.
Install term involves to copy my elf file from current directory to /usr/local/bin.
Additionally, it's works are to create directory for my data in user's home directory and to copy sample data to it.
Following codes are Install term in my Makefile.
install :
install -d /usr/local/bin
install $(ELF_FILE) /usr/local/bin
install -d $(HOME)/.$(PROJECT_NAME)/
cp -rp $(DATA_DIRECOTRY) $(HOME)/.$(PROJECT_NAME)/
 


No comments:
Post a Comment