diff --git a/edit/Makefile.in b/edit/Makefile.in index ccff9f174..2f28fb051 100644 --- a/edit/Makefile.in +++ b/edit/Makefile.in @@ -26,7 +26,7 @@ EDITOBJS = edit.o editcmd.o editwidget.o editdraw.o editmenu.o wordproc.o \ DIST = Makefile.in README.edit $(EDITSRC) -all: @LIBEDIT_A@ +all: checklinks @LIBEDIT_A@ .c.o: $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $< @@ -34,6 +34,13 @@ all: @LIBEDIT_A@ check: @echo no tests are supplied. +checklinks: + @if test -f $(rootdir)/edit/edit.c; then echo ok; \ + else $(MAKE) sourcelinks; fi + +sourcelinks: + -cd $(rootdir)/edit ; $(LN_S) ../gtkedit/*.[ch] . >/dev/null 2>&1 ; true + libedit.a: $(EDITOBJS) $(RMF) $@ $(AR) cr $@ $(EDITOBJS)