Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gromnitsky/ims
The simplest possible wrapper around GNU Make for playing w/ its internal functions like `$(patsubst)` interactively as if in some kind of REPL environment.
https://github.com/gromnitsky/ims
Last synced: about 6 hours ago
JSON representation
The simplest possible wrapper around GNU Make for playing w/ its internal functions like `$(patsubst)` interactively as if in some kind of REPL environment.
- Host: GitHub
- URL: https://github.com/gromnitsky/ims
- Owner: gromnitsky
- Created: 2016-01-23T21:01:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-23T21:02:52.000Z (almost 9 years ago)
- Last Synced: 2023-04-10T15:02:46.705Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interactive Make Shell
The simplest possible wrapper around GNU Make for playing w/ it
internal functions like `$(patsubst)` interactively as if in some kind
of REPL environment.## Requirements
* Ruby 2.0+
* GNU Make
* rlwrap## Usage
To run, type
$ rlwrap -S 'ims> ' ./ims
. (+ Return) prints the help screen.
## Examples
~~~
ims> src := foo/a.coffee foo/b.coffee bar/index.html
ims> . $(patsubst %.coffee, build/%.js, $(src))
build/foo/a.js build/foo/b.js bar/index.html
ims> . $(filter %.html, $(src))
bar/index.html
ims>
~~~~~~
ims> me:; @printenv USER
ims> .t me
alex
ims>
~~~~~~
ims> . $(sort $(wildcard /*))
/bin /boot /dev /etc /home /lib /lost+found /media /mnt /opt /proc /root /run /sbin /srv /sys /tmp /usr /var
~~~## Bugs
It's not possible to enter a multiline expression.
## License
MIT.