Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] [with suggestion] add make install target. #86

Closed
dreirund opened this issue May 8, 2023 · 1 comment
Closed

[Feature Request] [with suggestion] add make install target. #86

dreirund opened this issue May 8, 2023 · 1 comment
Assignees

Comments

@dreirund
Copy link

dreirund commented May 8, 2023

Ahoj,

to ease packaging for Unix systems, please add a make install target, which installs everything to run cito system-wide to the appropriate directories, and which honours DESTDIR:

  • By default, install to a directory structure under /usr/local/,
  • if DESTDIR=/somedirectory is specified, install to a proper directory structure under $(DESTDIR)/.
    (e.g. executable to usr/bin/cito, if shared libraries belong to the project they go into usr/lib/, documentation into usr/share/doc/cito, etc.)

My solution was to

  1. copy <cito-build-directory>/bin/Debug/net*/* into $DESTDIR/usr/lib/cito/,
  2. chmod 755 $DESTDIR/usr/lib/cito/cito,
  3. ln -s $DESTDIR/usr/lib/cito/cito $DESTDIR/usr/bin/cito.

(See ↗ this PKGBUILD.

I don't know if this is sufficient.

Also, I do not want to have a debug build, but that was the only think which was produced.

Regards!

@dreirund dreirund changed the title [Feature Request] add make install target. [Feature Request] [with suggestion] add make install target. May 8, 2023
@pfusik pfusik closed this as completed in 6f7d4fd Jun 4, 2023
@pfusik
Copy link
Collaborator

pfusik commented Jun 4, 2023

Thanks for reporting this!

Now that cito is ported to Ć (#48), one can build it transpiled to C++. To solve the chicken-and-egg problem, Transpiled.cpp is checked into Git, so the only build dependency is a C++20 compiler, such as gcc 13 or clang 16.

make install will install the C++ binary. I will add the man page later. Not sure if installing *.md docs and /usr/share/licenses/cito/COPYING is recommended on all Linux distros?

@pfusik pfusik self-assigned this Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants