$NetBSD: patch-aa,v 1.3 2008/05/09 10:47:29 agc Exp $ Use LDFLAGS when linking, just in case we're ELF. Add DESTDIR support Make sure "install" is a phony target, so that the file INSTALL isn't recognised as install on case-insensitive file systems --- Makefile.in.orig 1997-10-21 09:28:16.000000000 +0100 +++ Makefile.in 2008-05-08 10:59:18.000000000 +0100 @@ -22,7 +22,7 @@ RANLIB= @RANLIB@ $(EXE) : $(OBJS) - $(CC) $(OBJS) $(LIBS) -o $(EXE) + $(CC) ${LDFLAGS} $(OBJS) $(LIBS) -o $(EXE) tst: $(EXE) test -d tests || ln -s $(srcdir)/tests . @@ -170,10 +170,12 @@ make clean rm -f config.cache config.log config.status Makefile config.h +.PHONY: install + install: - $(srcdir)/mkinstalldirs $(BINDIR) $(MANDIR)/man1/ - $(INSTALL) ssam $(BINDIR) - $(INSTALL_DATA) $(srcdir)/ssam.1 $(MANDIR)/man1/ + $(srcdir)/mkinstalldirs ${DESTDIR}$(BINDIR) ${DESTDIR}$(MANDIR)/man1/ + $(INSTALL) ssam ${DESTDIR}$(BINDIR) + $(INSTALL_DATA) $(srcdir)/ssam.1 ${DESTDIR}$(MANDIR)/man1/ ci: ci -l ssam.c main.c agc.h ssam.h config.h.in Makefile.in configure.in ssam.1