10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-06-02 11:25:19 +02:00

Fancy general Makefile

This commit is contained in:
Thomas Applencourt 2017-03-17 16:07:23 -05:00
parent 926c72a88b
commit 5da213f29c
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@ 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 endef
#We allow for the user to ask for 'relative' path
#But the IRPF90 build system use absolute path.
$(EXE): $(ARCH) $(EXE): $(ARCH)
@printf "%b" "\033[0;32m Build $@...\033[m\n" @printf "%b" "\033[0;32m Build $@...\033[m\n"
@$(call run, $(addprefix $(CURDIR)/, $@)) && touch $@ @$(call run, $(addprefix $(CURDIR)/, $@)) && touch $@

View File

@ -60,7 +60,7 @@ ARCH = $(addprefix $(CURDIR)/,IRPF90_temp/irpf90.a)
all: $(EXE) all: $(EXE)
define run 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 endef
#We allow for the user to ask for 'relative' path #We allow for the user to ask for 'relative' path