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