Package: euslisp / 9.27+dfsg-7

add-global-makefile.patch Patch series | download
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
Description: Add euslisp/Makefile
 To compile with debbuild, add euslisp/Makefile to set ARCHDIR and run
 makefile under lisp/ directory
 .
 euslisp (9.26-1) unstable; urgency=low
 .
   * Initial debian release (Closes: Bug#942317).
Author: Kei Okada <kei.okada@gmail.com>

---
Origin: other
Reviewed-By: Kei Okada <kei.okada@gmail.com>
Last-Update: 2019-09-06

--- /dev/null
+++ euslisp-9.26/Makefile
@@ -0,0 +1,39 @@
+GCC_MACHINE=$(shell gcc -dumpmachine)
+$(info "-- GCC_MACHINE = ${GCC_MACHINE}")
+OS=$(shell uname -s | sed 's/[^A-Za-z1-9].*//')
+$(info "--      OS = ${OS}")
+ifeq ($(OS),Linux)
+ ifneq (, $(findstring x86_64,$(GCC_MACHINE)))
+  export ARCHDIR=Linux64
+  export MAKEFILE=Makefile.Linux64
+ else
+ ifneq (, $(findstring arm,$(GCC_MACHINE)))
+  export ARCHDIR=LinuxARM
+  export MAKEFILE=Makefile.Linux
+ else ifneq (, $(findstring aarch,$(GCC_MACHINE)))
+  export ARCHDIR=LinuxARM
+  export MAKEFILE=Makefile.Linux
+ else
+  export ARCHDIR=Linux
+  export MAKEFILE=Makefile.Linux
+ endif
+ endif
+endif
+$(info "-- ARCHDIR = ${ARCHDIR}")
+$(info "-- MAKEFILE = ${MAKEFILE}")
+
+export EUSDIR=$(CURDIR)
+$(info "--  EUSDIR = ${EUSDIR}")
+
+all:
+	make -C lisp -f $(MAKEFILE) all MAKEFILE=$(MAKEFILE)
+	(cd lisp/image/jpeg/; make ARCHDIR=$(ARCHDIR) EUSDIR=$(EUSDIR))
+
+install:
+	make -C lisp -f $(MAKEFILE) install
+	(cd lisp/image/jpeg/; make ARCH=$(ARCHDIR) install)
+
+clean:
+	(cd lisp/image/jpeg/; make ARCH=$(ARCHDIR) clean)
+	make -C lisp -f $(MAKEFILE) clean
+