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