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 ====================
17 # ============================= Targets ==============================
19 CPP
= $(CC
) -E
-Is
-Im
20 #Note: an alternative is CPP = /lib/cpp
22 # Just to avoid uncertainty.
25 SUBMAKEFLAGS
= CC
='${CC}' LN_S
='${LN_S}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}'
30 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} all
33 rm -f temacs emacs prefix-args xmakefile
* core \
#* *.o libXMenu11.a
37 #This is used in making a distribution.
38 #Do not use it on development directories!
40 rm -f paths.h config.h emacs-
* ..
/etc
/DOC-
*
44 -rm -f emacs emacs-
* ..
/etc
/DOC
*
46 -rm -f
*~ \
#* m/*~ s/*~
52 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} emacs
58 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} temacs
60 SOURCES
= *.
[ch
] [sm
]/* COPYING Makefile.in ymakefile \
61 config.h.in README COPYING ChangeLog vms.pp-trans
69 ### Some makes, like Ultrix's make, complain if you put a comment in
70 ### the middle of a rule's command list! Dummies.
72 ### The flags for optimization and debugging depend on the
73 ### system, so take an ordinary CFLAGS value and choose the
74 ### appropriate CPP symbols to use in ymakefile.
75 ### If you have a problem with cc -E here, changing
76 ### the definition of CPP above may fix it.
78 # Remake xmakefile whenever we reconfigure even if config.h didn't change.
79 xmakefile
: ymakefile config.h ..
/config.status
80 -rm -f xmakefile xmakefile.new junk.c junk.
cpp
81 cp
${srcdir}/ymakefile junk.c
82 ${CPP} -I
${srcdir} ${CFLAGS} junk.c
> junk.
cpp
85 -e
's/^[ \f\t][ \f\t]*$$//' \
87 -e
's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \
88 -e
's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \
89 | sed
-n
-e
'/^..*$$/p' \
91 mv
-f xmakefile.new xmakefile
95 tagsfiles
= [a-z
]*.h
[a-z
]*.c ..
/lisp
/[a-z
]*.el ..
/lisp
/term
/[a-z
]*.el