2015-03-25 23:03:51 +01:00
|
|
|
.PHONY: default silent
|
2015-01-15 13:59:12 +01:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
ifneq ($(IN_MAKE),1)
|
2014-04-01 18:37:27 +02:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
default:
|
|
|
|
@$(MAKE) -C $(QPACKAGE_ROOT)/src $$(basename $(PWD))
|
2014-04-03 11:28:54 +02:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
veryclean:
|
|
|
|
clean_modules.sh
|
2014-04-03 11:28:54 +02:00
|
|
|
|
2015-04-02 11:40:16 +02:00
|
|
|
clean:
|
|
|
|
IN_MAKE=1 make clean
|
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
else # Called by scripts/build_module.sh
|
2014-04-01 18:37:27 +02:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
default: all .gitignore
|
2014-04-04 00:41:43 +02:00
|
|
|
|
|
|
|
# Include the user's config
|
|
|
|
include $(QPACKAGE_ROOT)/src/Makefile.config
|
|
|
|
|
2015-04-30 17:36:36 +02:00
|
|
|
# Create the NEEDED_CHILDREN_MODULES variable, needed for IRPF90
|
2015-05-04 15:03:53 +02:00
|
|
|
NEEDED_CHILDREN_MODULES=$(shell module_handler.py print_genealogy)
|
2014-04-11 01:53:15 +02:00
|
|
|
|
2014-04-04 00:41:43 +02:00
|
|
|
# Check and update dependencies
|
|
|
|
include Makefile.depend
|
|
|
|
|
|
|
|
|
2014-11-04 01:03:50 +01:00
|
|
|
# Define the Makefile common variables
|
2014-04-03 01:50:22 +02:00
|
|
|
EZFIO_DIR=$(QPACKAGE_ROOT)/EZFIO
|
2014-04-01 18:37:27 +02:00
|
|
|
EZFIO=$(EZFIO_DIR)/lib/libezfio_irp.a
|
2015-04-30 17:36:36 +02:00
|
|
|
INCLUDE_DIRS=$(NEEDED_CHILDREN_MODULES) include
|
2014-04-01 18:37:27 +02:00
|
|
|
|
|
|
|
clean_links:
|
2014-04-03 11:19:41 +02:00
|
|
|
rm -f $(INCLUDE_DIRS) $$(basename $$PWD)
|
2014-04-01 18:37:27 +02:00
|
|
|
|
|
|
|
LIB+=$(EZFIO) $(MKL)
|
2014-04-24 12:31:15 +02:00
|
|
|
IRPF90+=$(patsubst %, -I %, $(INCLUDE_DIRS)) $(IRPF90_FLAGS)
|
2014-04-01 18:37:27 +02:00
|
|
|
|
2015-04-30 17:36:36 +02:00
|
|
|
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_CHILDREN_MODULES $(wildcard *.py)
|
2014-05-14 00:07:58 +02:00
|
|
|
- $(IRPF90)
|
|
|
|
- update_README.py
|
2014-04-03 11:28:54 +02:00
|
|
|
|
|
|
|
include irpf90.make
|
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
endif
|
2015-01-15 13:59:12 +01:00
|
|
|
|
|
|
|
.gitignore:
|
2015-04-30 14:10:41 +02:00
|
|
|
$(QPACKAGE_ROOT)/scripts/create/create_gitignore.sh
|
2015-01-15 13:59:12 +01:00
|
|
|
|
|
|
|
# Frequent typos
|
|
|
|
clena: clean
|
2014-06-07 22:07:50 +02:00
|
|
|
veryclena: veryclean
|
2015-03-25 23:03:51 +01:00
|
|
|
vercylean: veryclean
|