10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-25 13:53:49 +01:00
quantum_package/src/Makefile

27 lines
625 B
Makefile
Raw Normal View History

default: all
SRC=
OBJ=
2015-01-11 20:28:33 +01:00
ALL_MODULES=$(shell cat NEEDED_MODULES)
2015-01-11 20:28:33 +01:00
.PHONY: executables all all_clean $(ALL_MODULES)
2014-10-10 00:26:49 +02:00
2015-01-11 20:28:33 +01:00
all: $(ALL_MODULES)
all_clean:
2015-01-11 20:28:33 +01:00
@for i in $(ALL_MODULES) ; do cd $$i ; make veryclean ; make clean_links ; cd .. ; done
2015-01-11 20:28:33 +01:00
$(ALL_MODULES): FORCE
cd $@ ; $(MAKE)
2015-01-11 20:28:33 +01:00
executables: $(ALL_MODULES)
2014-10-10 00:26:49 +02:00
rm -f executables ; \
2015-01-09 23:52:44 +01:00
for EXE in $$(find $(QPACKAGE_ROOT)/src -perm /u+x -type f | grep -e "$(QPACKAGE_ROOT)/src/[^/]*/[^/]*$$" |sort ) ; \
2014-10-10 00:26:49 +02:00
do printf "%-30s %s\n" $$(basename $$EXE) $$EXE | sed "s|$(QPACKAGE_ROOT)|\$$QPACKAGE_ROOT|g" >> executables ;\
done
2015-01-11 20:28:33 +01:00
# Dummy rule to enable to force recompilation
FORCE: