1 # DIST: This is the distribution Makefile for Emacs. configure can
2 # DIST: make most of the changes to this file you might want, so try
6 # BSD doesn't have it as a default.
8 # ==================== Things `configure' might edit ====================
15 # ============================= Targets ==============================
17 CPP
= $(CC
) -E
-Is
-Im
18 #Note: an alternative is CPP = /lib/cpp
20 # Just to avoid uncertainty.
23 SUBMAKEFLAGS
= CC
='${CC}' LN_S
='${LN_S}'
28 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} all
30 #This is used in making a distribution.
31 #Do not use it on development directories!
33 -rm -f paths.h config.h emacs-
* temacs emacs xmakefile core
*.o
36 -rm -f temacs emacs prefix-args xmakefile
* core \
#* *.o
39 -rm -f emacs emacs-
* ..
/etc
/DOC
*
42 -rm -f
*~ \
#* m/*~ s/*~
48 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} emacs
54 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} temacs
56 SOURCES
= *.
[ch
] [sm
]/* COPYING Makefile.in ymakefile \
57 config.h.in README COPYING ChangeLog vms.pp-trans
65 ### Some makes, like Ultrix's make, complain if you put a comment in
66 ### the middle of a rule's command list! Dummies.
68 ### The flags for optimization and debugging depend on the
69 ### system, so take an ordinary CFLAGS value and choose the
70 ### appropriate CPP symbols to use in ymakefile.
71 ### If you have a problem with cc -E here, changing
72 ### the definition of CPP above may fix it.
73 xmakefile
: ymakefile config.h
74 -rm -f xmakefile xmakefile.new junk.c junk.
cpp
76 ${CPP} ${CFLAGS} junk.c
> junk.
cpp \
77 -DC_SWITCH_SITE
="`echo ${CFLAGS}' ' \
78 | sed -e 's/-g /C_DEBUG_SWITCH /' \
79 -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
82 -e
's/^[ \f\t][ \f\t]*$$//' \
84 | sed
-n
-e
'/^..*$$/p' \
86 mv
-f xmakefile.new xmakefile
90 tagsfiles
= [a-z
]*.h
[a-z
]*.c ..
/lisp
/[a-z
]*.el ..
/lisp
/term
/[a-z
]*.el