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 /Makefile | |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 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 # |