Skip to content

Commit

Permalink
BSD-compatible make install
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Sep 19, 2014
1 parent 00e8069 commit 8679e9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8679e9f

Please sign in to comment.