blob: 98fde55d44897ea05036f8d35efcc88e9e407c03 (
plain)
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
|
CPP = $(CC) -E
MAKE = make # BSD doesn't have it as a default.
#Note: an alternative is CPP = /lib/cpp
# Just to avoid uncertainty.
SHELL = /bin/sh
all: xmakefile doall
doall:
$(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all
#This is used in making a distribution.
#Do not use it on development directories!
distclean: clean
-rm -f paths.h config.h emacs-* *~ log*
clean:
-rm -f temacs xemacs xmakefile core \#* *.o libXMenu11.a
xemacs: xmakefile doxemacs
doxemacs:
$(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xemacs
temacs: xmakefile dotemacs
dotemacs:
$(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} temacs
# If you have a problem with cc -E here, changing
# the definition of CPP above may fix it.
xmakefile: ymakefile config.h
-rm -f xmakefile junk.c
cp ymakefile junk.c
$(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ ][ ]*$$//' -e 's/^ / /' | \
sed -n -e '/^..*$$/p' > xmakefile
rm -f junk.c
tags:
etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el
|