From 8679e9fa03d1e873268a348355bb9693ff1b3ed6 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Thu, 18 Sep 2014 20:06:17 -0700 Subject: BSD-compatible make install --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ce24825..10fd4ed 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,13 @@ test: fzytest fzy: fzy.o match.o tty.o choices.o $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^ -%.o: %.c +%.o: %.c config.h $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< install: fzy $(INSTALL_PROGRAM) fzy $(DESTDIR)$(BINDIR)/fzy - $(INSTALL_PROGRAM) -D fzy.1 $(DESTDIR)$(MANDIR)/man1/fzy.1 + $(INSTALL_PROGRAM) -d $(DESTDIR)$(MANDIR)/man1 + $(INSTALL_PROGRAM) fzy.1 $(DESTDIR)$(MANDIR)/man1/fzy.1 clean: $(RM) fzy fzytest *.o -- cgit v1.2.3