From 5da213f29c4bb5346c1a179a7283b2602482d4ee Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Fri, 17 Mar 2017 16:07:23 -0500 Subject: [PATCH] Fancy general Makefile --- example/Makefile | 2 ++ src/templates/general.make | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/Makefile b/example/Makefile index 6653b88..2e54ecb 100644 --- a/example/Makefile +++ b/example/Makefile @@ -63,6 +63,8 @@ define run $(BUILD_SYSTEM) -C $(dir $(BUILD_FILE) ) -f $(notdir $(BUILD_FILE) ) $(1) endef +#We allow for the user to ask for 'relative' path +#But the IRPF90 build system use absolute path. $(EXE): $(ARCH) @printf "%b" "\033[0;32m Build $@...\033[m\n" @$(call run, $(addprefix $(CURDIR)/, $@)) && touch $@ diff --git a/src/templates/general.make b/src/templates/general.make index 1822c84..8e1ebb0 100644 --- a/src/templates/general.make +++ b/src/templates/general.make @@ -60,7 +60,7 @@ ARCH = $(addprefix $(CURDIR)/,IRPF90_temp/irpf90.a) all: $(EXE) define run - $(BUILD_SYSTEM) -C $(dir $(BUILD_FILE) ) -f $(notdir $(BUILD_FILE) ) $(1)", + $(BUILD_SYSTEM) -C $(dir $(BUILD_FILE) ) -f $(notdir $(BUILD_FILE) ) $(1) endef #We allow for the user to ask for 'relative' path