33
|
1 CPP = $(CC) -E
|
|
2 MAKE = make # BSD doesn't have it as a default.
|
|
3 #Note: an alternative is CPP = /lib/cpp
|
|
4
|
|
5 all: xmakefile doall
|
|
6
|
|
7 doall:
|
|
8 $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all
|
|
9
|
|
10 #This is used in making a distribution.
|
|
11 #Do not use it on development directories!
|
|
12 distclean:
|
|
13 -rm -f paths.h config.h emacs-* temacs xemacs xmakefile core *~ \#* *.o
|
|
14
|
|
15 clean:
|
|
16 -rm -f temacs xemacs xmakefile core \#* *.o
|
|
17
|
|
18 xemacs: xmakefile doxemacs
|
|
19
|
|
20 doxemacs:
|
|
21 $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xemacs
|
|
22
|
|
23 temacs: xmakefile dotemacs
|
|
24
|
|
25 dotemacs:
|
|
26 $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} temacs
|
|
27
|
|
28 # If you have a problem with cc -E here, changing
|
|
29 # the definition of CPP above may fix it.
|
|
30 xmakefile: ymakefile config.h
|
|
31 rm -f xmakefile
|
|
32 cp ymakefile junk.c
|
|
33 $(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$$//' -e 's/^ / /' | \
|
|
34 sed -n -e '/^..*$$/p' > xmakefile
|
|
35 rm -f junk.c
|
|
36
|
|
37 tags TAGS:
|
|
38 etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el
|