diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-09-13 22:12:14 +0200 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-09-13 22:12:14 +0200 |
commit | 16ab153f3a54194e3217fcf1a235904e4b61623b (patch) | |
tree | c27f9326815ebf4454e753028dcb3d388b3c0990 | |
parent | 295428a550bb55a509ce15c5e27a0ab173799ebb (diff) |
Move source files to src/ directory.
As a bonus you can build out-of-tree now via make -f.
It's part of the work related to issue #22.
-rw-r--r-- | Makefile | 6 | ||||
-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
@@ -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 |