Refactor the Makefile

Separate concerns properly for each subdirectory's Makefile
This commit is contained in:
Javier Goizueta
2016-03-16 15:40:40 +01:00
parent d13f167d47
commit dea6e2f1a7
4 changed files with 60 additions and 34 deletions
+6
View File
@@ -0,0 +1,6 @@
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
EXTENSION = crankshaft
PACKAGE = crankshaft
EXTVERSION = $(shell grep default_version $(SELF_DIR)/src/pg/$(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
RELEASE_VERSION ?= $(EXTVERSION)
SED = sed