Skip to content

Conversation

@Wingie
Copy link
Contributor

@Wingie Wingie commented Jun 5, 2016

make install will install libraries in /usr/share/ngs/
make uninstall will delete contents of the above folder

`make install` will install libraries in `/usr/share/ngs/`
`make uninstall` will delete contents of the above folder
@ilyash
Copy link
Member

ilyash commented Jun 5, 2016

Thanks!

Could you please adjust the commands as per https://www.gnu.org/prep/standards/html_node/Directory-Variables.html ? default prefix would be /usr/local and so on. Note no trailing slash, please add it in the cp commands. I guess the location of ngs files should also be passed to ngs.c and compiled in as one of the places to search, probably the last one.

Optional / later: It would be also nice to add a test to .travis.yml that would make sure the installation went OK... and removal.

@Wingie
Copy link
Contributor Author

Wingie commented Jun 6, 2016

Interesting read that was.
if i put the files in /usr/local/share/ngs/ the binary no longer finds it when invoked with ./ngs demo/ec2din.ngs

@ilyash
Copy link
Member

ilyash commented Jun 6, 2016

Yep. I've edited my comment above so you probably missed it: you should also modify ngs.c to look at the location specified at build time.

You can now run a demo like `ngs demo/ec2din.ngs` after `make install`
@ilyash ilyash merged commit e02f997 into ngs-lang:master Jun 7, 2016
@ilyash
Copy link
Member

ilyash commented Jun 7, 2016

Merged with modifications. Needs testing but I can't do it right now.

@ilyash
Copy link
Member

ilyash commented Jun 7, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants