Skip to content
Snippets Groups Projects
Commit 4aa7897b authored by namark's avatar namark
Browse files

Allow some header_only_lib variables to be specified in parent makefile.

parent a7208728
No related branches found
No related tags found
No related merge requests found
INSTALL_INCLUDE := include INSTALL_INCLUDE ?= include
INSTALL_SOURCE := source INSTALL_SOURCE ?= source
ifneq ($(shell cat COPYRIGHT 2> /dev/null),) ifneq ($(shell cat COPYRIGHT 2> /dev/null),)
COPYRIGHT ?= COPYRIGHT COPYRIGHT ?= COPYRIGHT
...@@ -8,10 +8,10 @@ else ...@@ -8,10 +8,10 @@ else
COPYRIGHT ?= /dev/null COPYRIGHT ?= /dev/null
endif endif
PREFIX := $(DESTDIR)/usr/local PREFIX ?= $(DESTDIR)/usr/local
INCDIR := $(PREFIX)/$(INSTALL_INCLUDE) INCDIR := $(PREFIX)/$(INSTALL_INCLUDE)
SRCDIR := ./source SRCDIR ?= ./source
HEADERS := $(shell find -wholename "$(SRCDIR)/*.hpp" && find -wholename "$(SRCDIR)/*.h") HEADERS := $(shell find -wholename "$(SRCDIR)/*.hpp" && find -wholename "$(SRCDIR)/*.h")
INCLUDE := $(HEADERS:$(SRCDIR)/%=$(INCDIR)/%) INCLUDE := $(HEADERS:$(SRCDIR)/%=$(INCDIR)/%)
INCDIRS := $(shell dirname $(INCLUDE)) INCDIRS := $(shell dirname $(INCLUDE))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment