summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--src/metaentry.c (renamed from metaentry.c)0
-rw-r--r--src/metaentry.h (renamed from metaentry.h)0
-rw-r--r--src/metastore.c (renamed from metastore.c)0
-rw-r--r--src/metastore.h (renamed from metastore.h)0
-rw-r--r--src/settings.h (renamed from settings.h)0
-rw-r--r--src/utils.c (renamed from utils.c)0
-rw-r--r--src/utils.h (renamed from utils.h)0
8 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
#
diff --git a/metaentry.c b/src/metaentry.c
index f3ba692..f3ba692 100644
--- a/metaentry.c
+++ b/src/metaentry.c
diff --git a/metaentry.h b/src/metaentry.h
index 666c5af..666c5af 100644
--- a/metaentry.h
+++ b/src/metaentry.h
diff --git a/metastore.c b/src/metastore.c
index 2956cab..2956cab 100644
--- a/metastore.c
+++ b/src/metastore.c
diff --git a/metastore.h b/src/metastore.h
index 384808d..384808d 100644
--- a/metastore.h
+++ b/src/metastore.h
diff --git a/settings.h b/src/settings.h
index a9ef996..a9ef996 100644
--- a/settings.h
+++ b/src/settings.h
diff --git a/utils.c b/src/utils.c
index 7c85b38..7c85b38 100644
--- a/utils.c
+++ b/src/utils.c
diff --git a/utils.h b/src/utils.h
index 2dd61c9..2dd61c9 100644
--- a/utils.h
+++ b/src/utils.h