Initial revision
[bpt/emacs.git] / src / Makefile.in
CommitLineData
c8ff0e1b
JA
1CPP = $(CC) -E
2MAKE = make # BSD doesn't have it as a default.
3#Note: an alternative is CPP = /lib/cpp
4
5all: xmakefile doall
6
7doall:
8 $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all
9
10#This is used in making a distribution.
11#Do not use it on development directories!
12distclean:
13 -rm -f paths.h config.h emacs-* temacs xemacs xmakefile core *~ \#* *.o
14
15clean:
16 -rm -f temacs xemacs xmakefile core \#* *.o
17
18xemacs: xmakefile doxemacs
19
20doxemacs:
21 $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xemacs
22
23temacs: xmakefile dotemacs
24
25dotemacs:
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.
30xmakefile: 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
37tags TAGS:
38 etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el