Skip to content

Define READ-FROM-FILE and EXPAND-FILE; simplify makefile; get rid of obj/ directory - #215

Open
shawwn wants to merge 2 commits into
sctb:masterfrom
shawwn:2019-10-06/read-from-file
Open

Define READ-FROM-FILE and EXPAND-FILE; simplify makefile; get rid of obj/ directory#215
shawwn wants to merge 2 commits into
sctb:masterfrom
shawwn:2019-10-06/read-from-file

Conversation

@shawwn

@shawwn shawwn commented Oct 6, 2019

Copy link
Copy Markdown
Contributor

This PR simplifies makefile by getting rid of the obj/ directory. It accomplishes this by adding a new file lumen.l:

(when-compiling
  `(do ,@(read-from-file "runtime.l")
       ,@(read-from-file "macros.l")
       ,@(read-from-file "main.l")))

Additionally, two new global functions are defined: read-from-file and expand-file.

Whenever runtime.l, macros.l, or main.l is modified, bin/lumen.{js,lua} will be correctly rebuilt. (I.e. the new makefile is functionally identical to the old makefile.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant