diff options
author | Stefan Israelsson Tampe <stefan.itampe@gmail.com> | 2018-12-18 21:55:10 +0100 |
---|---|---|
committer | Stefan Israelsson Tampe <stefan.itampe@gmail.com> | 2018-12-18 21:55:10 +0100 |
commit | 2fc62c06ec913933f47a7723357e35d5bddc8b8b (patch) | |
tree | 15fac2ca79534440abc229d9b462b9442d4f1436 /modules | |
parent | 4a87b4b6d8f2ac76130b3cbfd9606be15c978a00 (diff) |
make can now compilepy files, added more source files to the make compile
Diffstat (limited to 'modules')
-rw-r--r-- | modules/Makefile.am | 73 | ||||
-rw-r--r-- | modules/guile.am | 9 |
2 files changed, 78 insertions, 4 deletions
diff --git a/modules/Makefile.am b/modules/Makefile.am index d2d4f63..1f81572 100644 --- a/modules/Makefile.am +++ b/modules/Makefile.am @@ -52,6 +52,77 @@ SOURCES = \ language/python/module/python.scm \ language/python/spec.scm \ language/python/module/collections/abc.scm \ - language/python/module/collections.scm + language/python/module/collections.scm \ + language/python/module/operator.scm \ + language/python/module/pickle.scm \ + language/python/module/_random.scm \ + language/python/module/random.py \ + language/python/module/sys.scm \ + language/python/module/random.py \ + language/python/module/weakref.scm \ + language/python/module/abc.scm \ + language/python/module/threading.scm \ + language/python/module/functools.scm \ + language/python/module/types.scm \ + language/python/module/enum.py \ + language/python/module/time.scm \ + language/python/module/warnings.scm \ + language/python/module/struct.scm \ + language/python/module/_socket.scm \ + language/python/module/signal.scm \ + language/python/module/resource.scm \ + language/python/module/select.scm \ + language/python/module/pwd.scm \ + language/python/module/math.scm \ + language/python/module/heapq.scm \ + language/python/module/copy.scm \ + language/python/module/_csv.scm \ + language/python/module/itertools.scm \ + language/python/module/locale.scm \ + language/python/module/keyword.scm \ + language/python/module/cmath.scm \ + language/python/module/builtins.scm \ + language/python/module/bisect.scm \ + language/python/module/binascii.scm \ + language/python/module/decimal.scm \ + language/python/module/_blake2b.scm \ + language/python/module/_blake2s.scm \ + language/python/module/_md5.scm \ + language/python/module/_sha1.scm \ + language/python/module/_sha224.scm \ + language/python/module/_sha256.scm \ + language/python/module/_sha384.scm \ + language/python/module/_sha512.scm \ + language/python/module/_sha3_224.scm \ + language/python/module/_sha3_256.scm \ + language/python/module/_sha3_384.scm \ + language/python/module/_sha3_512.scm \ + language/python/module/_shake_128.scm \ + language/python/module/_shake_256.scm \ + language/python/module/csv.py \ + language/python/module/datetime.py \ + language/python/module/textwrap.py \ + language/python/module/argparse.py \ + language/python/module/asynchat.py \ + language/python/module/asyncore.py \ + language/python/module/base64.py \ + language/python/module/calendar.py \ + language/python/module/codecs.py \ + language/python/module/contextlib.py \ + language/python/module/difflib.py \ + language/python/module/filecmp.py \ + language/python/module/genericpath.py \ + language/python/module/posixpath.py \ + language/python/module/fnmatch.py + + + + + + + + + + EXTRA_DIST += env.in COPYING diff --git a/modules/guile.am b/modules/guile.am index ebe2773..f93a9ad 100644 --- a/modules/guile.am +++ b/modules/guile.am @@ -1,5 +1,6 @@ -GOBJECTS = $(SOURCES:%.scm=%.go) - +GOBJECTS1 = $(SOURCES:%.scm=%.go) +GOBJECTS = $(GOBJECTS1:%.py=%.go) + nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) nobase_go_DATA = $(GOBJECTS) @@ -14,6 +15,8 @@ $(guile_install_go_files): install-nobase_modDATA CLEANFILES = $(GOBJECTS) EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES) GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat -SUFFIXES = .scm .go +SUFFIXES = .scm .py .go .scm.go: $(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<" +.py.go: + $(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) --from=python -o "$@" "$<" |