Avoid non-portable use of $< outside an inference rule.
[mmh] / sbr / Makefile.in
index 84b003f..08845c3 100644 (file)
@@ -65,7 +65,8 @@ SRCS = add.c addrsbr.c ambigsw.c atooi.c brkstring.c                  \
        fmt_scan.c lock_file.c m_atoi.c m_backup.c                      \
        m_convert.c m_draft.c m_getfld.c m_gmprot.c                     \
        m_maildir.c m_name.c m_scratch.c m_tmpfil.c                     \
-       makedir.c mts.c path.c peekc.c pidwait.c pidstatus.c            \
+       makedir.c mts.c norm_charmap.c                                  \
+       path.c peekc.c pidwait.c pidstatus.c                            \
        print_help.c print_sw.c print_version.c push.c                  \
        putenv.c pwd.c refile.c remdir.c r1bindex.c                     \
        readconfig.c ruserpass.c seq_add.c seq_bits.c                   \
@@ -98,14 +99,16 @@ sigmsg.h: sigmsg.awk
 lint: sigmsg.h
        $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
 
+# Note that some lexes (for example flex 2.5.4) require that there
+# be no space between -o and the output filename.
 dtimep.c: dtimep.lex
-       $(LEX) -nt $< > $@
+       $(LEX) -o$@ dtimep.lex
 
 client.o: client.c
-       $(COMPILE2) $<
+       $(COMPILE2) client.c
 
 mts.o: mts.c
-       $(COMPILE2) $<
+       $(COMPILE2) mts.c
 
 pidstatus.o: sigmsg.h
 
@@ -128,7 +131,7 @@ mostlyclean:
        rm -f *.o *~
 
 clean: mostlyclean
-       rm -f libmh.a sigmsg.h
+       rm -f libmh.a sigmsg.h dtimep.c
 
 distclean: clean
        rm -f Makefile
@@ -142,7 +145,7 @@ superclean: realclean
 subdir = sbr
 
 Makefile: Makefile.in ../config.status
-       cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
+       cd .. && ./config.status $(subdir)/$@
  
 distdir = ../`cat ../distname`/$(subdir)
 nmhdist: $(DIST)