From 16ab153f3a54194e3217fcf1a235904e4b61623b Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Sun, 13 Sep 2015 22:12:14 +0200 Subject: 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. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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 # -- cgit v1.2.1