forked from andreer/lispbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile.clisp
34 lines (21 loc) · 898 Bytes
/
GNUmakefile.clisp
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
all: staging-archives/$(THING).tar.gz
include GNUmakefile.base
ifneq (,$(findstring $(os),Linux Darwin))
staging-archives/$(THING).tar.gz: $(prefix)/$(THING)
(cd $(prefix); tar czf - $(THING)) > $@
$(prefix)/$(THING): staging/$(THING)/src/clisp
cd staging/$(THING)/src; $(MAKE) install
staging/$(THING)/src/clisp: staging/$(THING)
cd staging/$(THING); ./configure --prefix=$(prefix)/$(THING) --build --without-readline
# For 2.36
# cd staging/$(THING); ./configure --prefix=$(prefix)/$(THING) --build --without-readline --ignore-absence-of-libsigsegv
staging/$(THING): source-archives/$(THING).tar.gz staging
cat $< | (cd staging; tar xzf -)
endif
ifeq ($(os),Windows)
staging-archives/$(THING).tar.gz: staging/$(THING)
(cd staging; tar czf - $(THING)) > $@
staging/$(THING): binary-archives/$(THING)-win32-no-pg.zip staging
unzip $< -d staging/
chmod +x $@/full/lisp.exe
endif