Skip to content
This repository
tree: befef0c533
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 83 lines (65 sloc) 2.276 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
JULIAHOME = $(abspath .)
include $(JULIAHOME)/Make.inc

all: default
default: release

debug release:
@$(MAKE) -s julia-$@
@$(MAKE) -s sys.ji

julia-debug julia-release:
@$(MAKE) -sC external
@$(MAKE) -sC src lib$@
@$(MAKE) -sC base
@$(MAKE) -sC ui $@
@ln -f $@-$(DEFAULT_REPL) julia

sys0.ji: src/boot.jl src/dump.c base/stage0.jl
$(QUIET_JULIA) cd base && ../julia -b stage0.jl
@rm -f sys.ji

# if sys.ji exists, use it to rebuild, otherwise use sys0.ji
sys.ji: VERSION sys0.ji base/*.jl
$(QUIET_JULIA) cd base && ../julia `test -f ../sys.ji && echo stage1.jl || echo -J sys0.ji stage1.jl`

install: release
install -d $(DESTDIR)$(PREFIX)/share/julia/lib
install -d $(DESTDIR)$(PREFIX)/share/julia/base
install -d $(DESTDIR)$(PREFIX)/share/julia/contrib
install -d $(DESTDIR)$(PREFIX)/share/julia/examples
install -d $(DESTDIR)$(PREFIX)/share/julia/extras
install -v julia $(DESTDIR)$(PREFIX)/share/julia
install -v julia-release-basic $(DESTDIR)$(PREFIX)/share/julia
install -v julia-release-webserver $(DESTDIR)$(PREFIX)/share/julia
install -v sys.ji $(DESTDIR)$(PREFIX)/share/julia
install -v base/* $(DESTDIR)$(PREFIX)/share/julia/base
install -v extras/* $(DESTDIR)$(PREFIX)/share/julia/extras
install -v examples/*.jl $(DESTDIR)$(PREFIX)/share/julia/examples
-install -v lib/*.$(SHLIB_EXT) $(DESTDIR)$(PREFIX)/share/julia/lib

dist: release
rm -fr dist julia-*.tar.gz
$(MAKE) install DESTDIR=dist PREFIX=/usr
cd dist/usr/share && tar zcvf ../../../julia-$(JULIA_COMMIT)-$(OS)-$(ARCH).tar.gz *

deb:
fakeroot debian/rules binary

debclean:
fakeroot debian/rules clean

h2j: lib/libLLVM*.a lib/libclang*.a src/h2j.cpp
$(QUIET_CC) g++ -O2 -fno-rtti -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Iinclude $^ -o $@

clean:
@rm -f julia
@rm -f *~ *#
@rm -f sys0.ji
@rm -f sys.ji
@$(MAKE) -sC base clean
@$(MAKE) -sC src clean
@$(MAKE) -sC ui clean
@$(MAKE) -sC ui/webserver clean
@$(MAKE) -sC test/unicode clean

cleanall: clean
@$(MAKE) -sC src clean-flisp clean-support

distclean: cleanall
rm -fr dist

.PHONY: default debug release julia-debug julia-release \
test testall test-* sloccount clean cleanall

test: release
@$(MAKE) -sC test default

testall: release
@$(MAKE) -sC test all

test-%: release
@$(MAKE) -sC test $*
Something went wrong with that request. Please try again.