Created
January 31, 2010 13:36
-
-
Save qnighy/291069 to your computer and use it in GitHub Desktop.
Makefile for checkinstall FSharp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/make -f | |
| # Makefile for checkinstall FSharp | |
| # fsharp.zip | |
| # -> http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/release.aspx | |
| .PHONY: all clean | |
| all: doc-pak description-pak | |
| sn -q -R bin/FSharp.Core.dll /usr/share/cli-common/keys/mono.snk | |
| clean: | |
| rm -r doc-pak | |
| rm description-pak | |
| description-pak: | |
| echo 'Mono F\# (F-sharp) compiler for CLI 2.0\n'\ | |
| 'This is the Mono F\# (F-sharp) compiler, a platform-independent\n'\ | |
| 'compiler which produces CIL (Common Intermediate Language) binary executables.\n'\ | |
| > $@ | |
| doc-pak: | |
| mkdir doc-pak | |
| install: | |
| mkdir -p /usr/lib/mono/2.0/FSharp/1.0 | |
| cp bin/*.dll bin/*.xml bin/*.exe /usr/lib/mono/2.0/ | |
| cp bin/*.targets /usr/lib/mono/2.0/FSharp/1.0 | |
| echo '#!/bin/sh\nexec /usr/bin/mono $$MONO_OPTIONS /usr/lib/mono/2.0/fsc.exe "$$@"' > /usr/bin/fsc | |
| echo '#!/bin/sh\nexec /usr/bin/mono $$MONO_OPTIONS /usr/lib/mono/2.0/fsi.exe "$$@"' > /usr/bin/fsi | |
| chmod a+x /usr/bin/fsc /usr/bin/fsi | |
| for i in /usr/lib/mono/2.0/FSharp.*.dll ; \ | |
| do \ | |
| gacutil -i $$i ; \ | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment