Commit | Line | Data |
---|---|---|
4ddcbb51 RS |
1 | MAKE = make |
2 | # BSD doesn't have it as a default. | |
3 | ||
2798dedf | 4 | CC =gcc |
e5d77022 | 5 | CPP = $(CC) -E -Is -Im |
c8ff0e1b JA |
6 | #Note: an alternative is CPP = /lib/cpp |
7 | ||
5627d72e RS |
8 | # Just to avoid uncertainty. |
9 | SHELL = /bin/sh | |
10 | ||
c8ff0e1b JA |
11 | all: xmakefile doall |
12 | ||
13 | doall: | |
46947372 | 14 | $(MAKE) CC=${CC} $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all |
c8ff0e1b JA |
15 | |
16 | #This is used in making a distribution. | |
17 | #Do not use it on development directories! | |
18 | distclean: | |
2798dedf | 19 | -rm -f paths.h config.h machine.h system.h emacs-* temacs xemacs xmakefile core *~ \#* *.o |
c8ff0e1b JA |
20 | |
21 | clean: | |
e5d77022 | 22 | -rm -f temacs xemacs xmakefile* core \#* *.o |
c8ff0e1b JA |
23 | |
24 | xemacs: xmakefile doxemacs | |
25 | ||
26 | doxemacs: | |
27 | $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xemacs | |
28 | ||
29 | temacs: xmakefile dotemacs | |
30 | ||
31 | dotemacs: | |
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. | |
36 | xmakefile: ymakefile config.h | |
e5d77022 | 37 | -rm -f xmakefile xmakefile.new junk.c junk.cpp |
c8ff0e1b | 38 | cp ymakefile junk.c |
e5d77022 JB |
39 | $(CPP) junk.c > junk.cpp |
40 | < junk.cpp \ | |
41 | sed -e 's/^#.*//' \ | |
42 | -e 's/^[ \f\t][ \f\t]*$$//' \ | |
43 | -e 's/^ / /' \ | |
44 | | sed -n -e '/^..*$$/p' \ | |
45 | > xmakefile.new | |
46 | mv -f xmakefile.new xmakefile | |
c8ff0e1b JA |
47 | rm -f junk.c |
48 | ||
49 | tags TAGS: | |
50 | etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el |