summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3746029..96acb88 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,17 @@ LINK = $(CC) $(CFLAGS) $(LDFLAGS)
OBJECTS = utils.o metastore.o metaentry.o
HEADERS = utils.h metastore.h metaentry.h
+PROJ_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
+SRCS_DIR := $(PROJ_DIR)src/
+
DESTDIR ?=
prefix = /usr
usrbindir = ${prefix}/bin
mandir = ${prefix}/share/man
+vpath %.c $(SRCS_DIR)
+vpath %.h $(SRCS_DIR)
+
#
# Targets
#