# script's `--srcdir' option. However, the value of ${srcdir} in
# this makefile is not identical to what was specified with --srcdir,
# since the variable here has `/lib-src' added at the end.
+
+# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
srcdir=@srcdir@
VPATH=@srcdir@
# Things that a user might actually run,
# which should be installed in bindir.
INSTALLABLES = etags ctags emacsclient b2m
-INSTALLABLE_SCRIPTS = rcs-checkin
+INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
# Things that Emacs runs internally, or during the build process,
# which should not be installed in bindir.
#ifdef KERBEROS
# ifdef HAVE_LIBKRB
- KRB4LIB = -lkrb
+ KRB4LIB = -lkrb
# else
# ifdef HAVE_LIBKRB4
- KRB4LIB = -lkrb4
+ KRB4LIB = -lkrb4
# endif
# endif
# ifdef HAVE_LIBDES
- DESLIB = -ldes
+ DESLIB = -ldes
# else
# ifdef HAVE_LIBDES425
- DESLIB = -ldes425
+ DESLIB = -ldes425
# endif
# endif
# ifdef HAVE_LIBKRB5
- KRB5LIB = -lkrb5
+ KRB5LIB = -lkrb5
# endif
# ifdef HAVE_LIBCRYPTO
- CRYPTOLIB = -lcrypto
+ CRYPTOLIB = -lcrypto
# endif
# ifdef HAVE_LIBCOM_ERR
- COM_ERRLIB = -lcom_err
+ COM_ERRLIB = -lcom_err
# endif
-#endif /* KERBEROS
+#endif /* KERBEROS */
/* If HESIOD is defined, set this to "-lhesiod". */
HESIODLIB=
clean: mostlyclean
-rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
- -rm -f ../etc/DOC* *.tab.c *.tab.h
+ -rm -f ../etc/DOC* fns*.el *.tab.c *.tab.h
distclean: clean
-rm -f TAGS
REGEXPDEPS =
#else
REGEXPOBJ = regex.o
-REGEXPDEPS = $(REGEXPOBJ) ../src/regex.h
+REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
#endif
-regex.o: ../src/regex.c ../src/regex.h ../src/config.h
+regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
$(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
-b2m: ${srcdir}/b2m.c ../src/config.h
+b2m: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
$(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
$(GETOPTOBJS) $(LOADLIBES) -o b2m
movemail.o: ${srcdir}/movemail.c ../src/config.h
$(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c
-pop.o: ${srcdir}/pop.c
+pop.o: ${srcdir}/pop.c ../src/config.h
$(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
cvtmail: ${srcdir}/cvtmail.c
fakemail: ${srcdir}/fakemail.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
-yow: ${srcdir}/yow.c ../src/paths.h
+yow: ${srcdir}/yow.c ../src/epaths.h
$(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
emacsserver: ${srcdir}/emacsserver.c ../src/config.h