-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathGNUmakefile.emacs
51 lines (33 loc) · 1.25 KB
/
GNUmakefile.emacs
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
#
# Makefile to build binary archive Emacs.
#
all: staging-archives/$(THING).tar.gz
include GNUmakefile.base
ifeq ($(os),Linux)
staging-archives/$(THING).tar.gz: $(prefix)/$(THING)
(cd $(prefix); tar czf - $(THING)) > $@
$(prefix)/$(THING): staging/$(THING)/src/thing
cd staging/$(THING); $(MAKE) install
staging/$(THING)/src/thing: staging/$(THING)/src/Makefile
cd staging/$(THING); $(MAKE)
staging/$(THING)/src/Makefile: staging/$(THING)
cd staging/$(THING); ./configure --with-gif=no --with-tiff=no --with-x --prefix=$(prefix)/$(THING)
staging/$(THING): source-archives/$(THING).tar.gz
cat $< | (cd staging; tar xzf -)
endif
ifeq ($(os),Darwin)
EMACS_VERSION := emacs-23.2
sourcetar := $(EMACS_VERSION).tar.gz
staging-archives/$(THING).tar.gz: staging/$(EMACS_VERSION)/nextstep/$(THING)
(cd staging/$(EMACS_VERSION)/nextstep; tar czf - $(THING)) > $@
staging/$(EMACS_VERSION)/nextstep/$(THING): source-archives/$(sourcetar)
mkdir -p staging
cat $< | (cd staging; tar xzf - )
cd staging/$(EMACS_VERSION); ./configure --with-ns && make install
endif
ifeq ($(os),Windows)
staging-archives/$(THING).tar.gz: staging/$(THING)
(cd staging; tar czf - $(THING)) > $@
staging/$(THING): binary-archives/$(THING)-bin-i386.zip
(cd staging; unzip ../$<)
endif