Simplify install Makefile target

This commit is contained in:
Jerome Charaoui 2019-01-24 21:13:29 -05:00 committed by Fufu Fang
parent 854001d1ec
commit 0d2ffb309e
1 changed files with 1 additions and 4 deletions

View File

@ -5,8 +5,6 @@ LDFLAGS+= -lgumbo -lcurl -lfuse -lcrypto
OBJ = main.o network.o fuse_local.o link.o
PREFIX ?= /usr/local
INSTALL = /usr/bin/install
INSTALL_OPTS = -m 0755
%.o: %.c
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
@ -15,8 +13,7 @@ httpdirfs: $(OBJ)
$(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
$(INSTALL) $(INSTALL_OPTS) httpdirfs $(DESTDIR)$(PREFIX)/bin
install -m 755 -D httpdirfs $(DESTDIR)$(PREFIX)/bin
doc:
doxygen Doxyfile