summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-18 20:06:17 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-18 20:06:17 -0700
commit8679e9fa03d1e873268a348355bb9693ff1b3ed6 (patch)
treecb626ddcf4a04741978887aa617391576f2d267e /Makefile
parent00e8069b4e228af1bf3e2ae282f368676efbe0db (diff)
BSD-compatible make install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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