Makefile.in 1.15 KB
Newer Older
1 2 3
MAKE = make
# BSD doesn't have it as a default.

4
CC =gcc
Jim Blandy's avatar
Jim Blandy committed
5
CPP = $(CC) -E -Is -Im
Joseph Arceneaux's avatar
Joseph Arceneaux committed
6 7
#Note: an alternative is  CPP = /lib/cpp

8 9 10
# Just to avoid uncertainty.
SHELL = /bin/sh

Joseph Arceneaux's avatar
Joseph Arceneaux committed
11 12 13
all: xmakefile doall

doall:
Jim Blandy's avatar
Jim Blandy committed
14
	$(MAKE) CC=${CC} $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all
Joseph Arceneaux's avatar
Joseph Arceneaux committed
15 16 17 18

#This is used in making a distribution.
#Do not use it on development directories!
distclean:
19
	-rm -f paths.h config.h machine.h system.h emacs-* temacs xemacs xmakefile core *~ \#* *.o
Joseph Arceneaux's avatar
Joseph Arceneaux committed
20 21

clean:
Jim Blandy's avatar
Jim Blandy committed
22
	-rm -f temacs xemacs xmakefile* core \#* *.o
Joseph Arceneaux's avatar
Joseph Arceneaux committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36

xemacs: xmakefile doxemacs

doxemacs:
	$(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xemacs

temacs: xmakefile dotemacs

dotemacs:
	$(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} temacs

# If you have a problem with cc -E here, changing
# the definition of CPP above may fix it.
xmakefile: ymakefile config.h
Jim Blandy's avatar
Jim Blandy committed
37
	-rm -f xmakefile xmakefile.new junk.c junk.cpp
Joseph Arceneaux's avatar
Joseph Arceneaux committed
38
	cp ymakefile junk.c
Jim Blandy's avatar
Jim Blandy committed
39 40 41 42 43 44 45 46
	$(CPP) junk.c > junk.cpp
	< junk.cpp					\
	sed	-e 's/^#.*//'				\
		-e 's/^[ \f\t][ \f\t]*$$//'		\
		-e 's/^ /	/' 			\
	| sed -n -e '/^..*$$/p' 			\
	> xmakefile.new
	mv -f xmakefile.new xmakefile
Joseph Arceneaux's avatar
Joseph Arceneaux committed
47 48 49 50
	rm -f junk.c

tags TAGS:
	etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el