Install minitar.h as well
This commit is contained in:
parent
24253be975
commit
e233ca00eb
8
Makefile
8
Makefile
@ -7,7 +7,7 @@ CC ?= gcc
|
|||||||
AR ?= ar
|
AR ?= ar
|
||||||
CFLAGS ?= -O2 -Wall -Wextra
|
CFLAGS ?= -O2 -Wall -Wextra
|
||||||
CFLAGS := ${CFLAGS} -I.
|
CFLAGS := ${CFLAGS} -I.
|
||||||
DESTDIR ?= /usr/local/lib
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
OBJS := $(OBJ)/tar.o
|
OBJS := $(OBJ)/tar.o
|
||||||
|
|
||||||
@ -24,7 +24,8 @@ $(OBJ)/%.o: $(SRC)/%.c
|
|||||||
install:
|
install:
|
||||||
@echo -- Installing $(LIBNAME).a
|
@echo -- Installing $(LIBNAME).a
|
||||||
@mkdir -p $(DESTDIR)
|
@mkdir -p $(DESTDIR)
|
||||||
cp $(OUTPUT)/$(LIBNAME).a $(DESTDIR)
|
cp $(OUTPUT)/$(LIBNAME).a $(DESTDIR)/lib
|
||||||
|
cp ./minitar.h $(DESTDIR)/include
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ)/*.o
|
rm -f $(OBJ)/*.o
|
||||||
@ -32,4 +33,5 @@ clean:
|
|||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo -- Removing $(LIBNAME).a
|
@echo -- Removing $(LIBNAME).a
|
||||||
rm -f $(DESTDIR)/$(LIBNAME).a
|
rm -f $(DESTDIR)/lib/$(LIBNAME).a
|
||||||
|
rm -f $(DESTDIR)/include/minitar.h
|
Loading…
Reference in New Issue
Block a user