mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Add make install target
This commit is contained in:
15
Makefile
15
Makefile
@@ -11,9 +11,13 @@ CXXFLAGS = -std=c++11
|
||||
CFLAGS =
|
||||
LINKFLAGS = -lcrypto -lgtest -lpthread
|
||||
|
||||
ifeq ($(PREFIX),)
|
||||
PREFIX := /usr/local
|
||||
endif
|
||||
|
||||
OUTFILE = test
|
||||
|
||||
.PHONY: clean debug release
|
||||
.PHONY: clean debug release check install
|
||||
|
||||
all: debug
|
||||
|
||||
@@ -54,4 +58,13 @@ clean:
|
||||
@echo Removing dependency files
|
||||
@rm -rf $(DEP_DIR)
|
||||
|
||||
check: $(OUTFILE)
|
||||
./$(OUTFILE)
|
||||
|
||||
install: check
|
||||
@echo Installing headers
|
||||
@install -d $(DESTDIR)$(PREFIX)/include/jwt-cpp/
|
||||
@install -m 644 include/jwt-cpp/*.h $(DESTDIR)$(PREFIX)/include/jwt-cpp
|
||||
@echo Install done
|
||||
|
||||
-include $(OBJ:%=$(DEP_DIR)/%.d)
|
||||
|
||||
Reference in New Issue
Block a user