fusionlanguage / fut

Fusion programming language. Transpiling to C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C.
https://fusion-lang.org
GNU General Public License v3.0
1.77k stars 55 forks source link

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

Closed dreirund closed 1 year ago

dreirund commented 1 year ago

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:

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!

pfusik commented 1 year ago

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?