diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-18 20:06:17 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-18 20:06:17 -0700 |
commit | 8679e9fa03d1e873268a348355bb9693ff1b3ed6 (patch) | |
tree | cb626ddcf4a04741978887aa617391576f2d267e /Makefile | |
parent | 00e8069b4e228af1bf3e2ae282f368676efbe0db (diff) |
BSD-compatible make install
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |