1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = doc libthemedsupport \
guile-code theme-d-code tools meta theme-d-bootstrap test-suite
.PHONY : install-complete uninstall-complete \
setup-local-config remove-local-config \
clean-local-check distclean-local-check
THEME_D_LOCAL_CONFIG = ~/.theme-d-config
TOOLS_TO_COMPILE = check-test-compilation.scm \
check-test-program-linking.scm \
check-test-module-linking.scm \
check-test-runs.scm \
check-test-runs-m.scm \
compile-tests.scm \
generate-make-defs.scm \
get-theme-d-code-dir.scm \
get-theme-d-tools-dir.scm \
link-test-programs.scm \
link-to-modules.scm \
run-test-programs.scm \
run-test-programs-m.scm
confdir = $(CONFDIR)
conf_DATA = theme-d-config
theme-d-config : theme-d-config.in
sed \
-e 's|@_theme_d_guile_version@|$(MY_GUILE_VERSION)|g' \
-e 's|@_theme_d_target_platform@|$(TARGET_PLATFORM)|g' \
-e 's|@_theme_d_translator_dir@|$(THEME_D_TRANSLATOR_DIR)|g' \
-e 's|@_theme_d_runtime_dir@|$(THEME_D_RUNTIME_DIR)|g' \
-e 's|@_theme_d_lib_dir@|$(THEME_D_LIB_DIR)|g' \
-e 's|@_theme_d_target_lib_dir@|$(THEME_D_TARGET_LIB_DIR)|g' \
-e 's|@_theme_d_examples_dir@|$(THEME_D_EXAMPLES_DIR)|g' \
-e 's|@_theme_d_tests_dir@|$(THEME_D_TESTS_DIR)|g' \
-e 's|@_theme_d_tools_dir@|$(THEME_D_TOOLS_DIR)|g' \
-e 's|@_theme_d_bootstrap_dir@|$(THEME_D_BOOTSTRAP_DIR)|g' \
-e 's|@_theme_d_use_support_lib@|$(SUPPORT_LIB)|g' \
-e 's|@_theme_d_compiler_path@|$(THEME_D_COMPILER_PATH)|g' \
-e 's|@_theme_d_linker_path@|$(THEME_D_LINKER_PATH)|g' \
-e 's|@_theme_d_run_path@|$(THEME_D_RUN_PATH)|g' \
-e 's|@_theme_d_run_split_path@|$(THEME_D_RUN_SPLIT_PATH)|g' \
$< > $@
uninstall-local : remove-local-config
clean-local : clean-local-check
distclean-local : distclean-local-check
clean-local-check:
-rm -f theme-d-config
distclean-local-check:
-rm -f theme-d-config-maint
install-complete : remove-local-config install install-links
uninstall-complete : uninstall-links remove-local-config uninstall
install-links :
-rm $(bindir)/theme-d-compile
ln -s $(THEME_D_SCRIPT_DIR)/theme-d-compile.scm \
$(bindir)/theme-d-compile
-rm $(bindir)/theme-d-link
ln -s $(THEME_D_SCRIPT_DIR)/theme-d-link.scm \
$(bindir)/theme-d-link
-rm $(bindir)/run-theme-d-program
ln -s $(THEME_D_SCRIPT_DIR)/run-theme-d-program.scm \
$(bindir)/run-theme-d-program
-rm $(bindir)/run-theme-d-program-m
ln -s $(THEME_D_SCRIPT_DIR)/run-theme-d-program-m.scm \
$(bindir)/run-theme-d-program-m
-rm $(bindir)/run-split-theme-d-program
ln -s $(THEME_D_SCRIPT_DIR)/run-split-theme-d-program.scm \
$(bindir)/run-split-theme-d-program
-rm $(bindir)/get-theme-d-config-var
ln -s $(THEME_D_SCRIPT_DIR)/get-theme-d-config-var.scm \
$(bindir)/get-theme-d-config-var
ln -s $(THEME_D_SCRIPT_DIR)/compute-theme-d-pcode-deps.scm \
$(bindir)/compute-theme-d-pcode-deps
ln -s $(THEME_D_SCRIPT_DIR)/compute-theme-d-module-deps.scm \
$(bindir)/compute-theme-d-module-deps
ln -s $(THEME_D_SCRIPT_DIR)/compute-theme-d-program-deps.scm \
$(bindir)/compute-theme-d-program-deps
uninstall-links :
-rm $(bindir)/theme-d-compile
-rm $(bindir)/theme-d-link
-rm $(bindir)/run-theme-d-program
-rm $(bindir)/run-theme-d-program-m
-rm $(bindir)/run-split-theme-d-program
-rm $(bindir)/get-theme-d-config-var
-rm $(bindir)/compute-theme-d-pcode-deps
-rm $(bindir)/compute-theme-d-module-deps
-rm $(bindir)/compute-theme-d-program-deps
setup-local-config : theme-d-config-maint
cp -v $< $(THEME_D_LOCAL_CONFIG)
remove-local-config :
if [ -e $(THEME_D_LOCAL_CONFIG) ] ; then \
rm -f $(THEME_D_LOCAL_CONFIG) ; \
fi
compile-scheme-code :
guild compile $(THEME_D_SCRIPT_DIR)/theme-d-compile.scm
guild compile $(THEME_D_SCRIPT_DIR)/theme-d-link.scm
guild compile $(THEME_D_SCRIPT_DIR)/run-theme-d-program.scm
guild compile $(THEME_D_SCRIPT_DIR)/run-theme-d-program-m.scm
guild compile $(THEME_D_SCRIPT_DIR)/run-split-theme-d-program.scm
guild compile $(THEME_D_SCRIPT_DIR)/compute-theme-d-pcode-deps.scm
guild compile $(THEME_D_SCRIPT_DIR)/compute-theme-d-module-deps.scm
guild compile $(THEME_D_SCRIPT_DIR)/compute-theme-d-program-deps.scm
|