~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to .pc/fix-clean-rules.patch/base/Makefile

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-02-11 03:51:26 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130211035126-hap464pbhd97wjbl
Tags: 0.1~20130211.git86fbe98d-1
* New upstream snapshot.
* debian/control:
   + add git to Recommends (for Julia package manager)
   + remove dependencies on libglpk-dev (it moved to its own package)
   + add explicit dependency on libgmp10 (there is no more a wrapper)
* fix-clean-rules.patch: remove patch, applied upstream
* gsvddense_blasint.patch: new patch
* Refresh other patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
JULIAHOME = ..
2
 
include ../Make.inc
3
 
 
4
 
PCRE_CONST = 0x[0-9a-fA-F]+|[-+]?\s*[0-9]+
5
 
 
6
 
all: pcre_h.jl errno_h.jl build_h.jl file_constants.jl uv_constants.jl
7
 
 
8
 
pcre_h.jl:
9
 
        $(QUIET_PERL) $(CPP) -dM $(shell $(PCRE_CONFIG) --prefix)/include/pcre.h | perl -nle '/^\s*#define\s+PCRE_(\w*)\s*\(?($(PCRE_CONST))\)?\s*$$/ and print "const $$1 = uint32($$2)"' | sort > $@
10
 
 
11
 
errno_h.jl:
12
 
        $(QUIET_PERL) echo '#include "errno.h"' | $(CC) -E -dM - | perl -nle 'print "const $$1 = int32($$2)" if /^#define\s+(E\w+)\s+(\d+)\s*$$/' | sort > $@
13
 
 
14
 
file_constants.jl: ../src/file_constants.h
15
 
        $(QUIET_PERL) ${CC} -E -P -DJULIA ../src/file_constants.h | perl -nle 'print "$$1" if /^(\s*const\s+[A-z_]+\s+=\s+[0-9A-z_]+\s*)$$/' > $@
16
 
 
17
 
uv_constants.jl: ../src/uv_constants.h
18
 
        $(QUIET_PERL) ${CC} -E -P -I"../deps/libuv/include" -DJULIA ../src/uv_constants.h | tail -n 5 > $@
19
 
 
20
 
build_h.jl: ../Make.inc ../src/os_detect.h
21
 
        $(QUIET_PERL) $(CC) -E -P -DJULIA ../src/os_detect.h | grep OS_NAME > $@
22
 
        @echo "const libm_name = \"$(LIBMNAME)\"" >> $@
23
 
        @echo "const libblas_name = \"$(LIBBLASNAME)\"" >> $@
24
 
        @echo "const liblapack_name = \"$(LIBLAPACKNAME)\"" >> $@
25
 
ifeq ($(USE_LIB64), 1)
26
 
        @echo "const USE_LIB64 = true" >> $@
27
 
else
28
 
        @echo "const USE_LIB64 = false" >> $@
29
 
endif
30
 
 
31
 
 
32
 
clean:
33
 
        rm -f *# *~
34
 
        rm -f pcre_h.jl
35
 
        rm -f errno_h.jl
36
 
        rm -f build_h.jl