Sha256: 959c37c04a41aca6a24c269bd33d9051a41e1e02bbe218f98ee19c272014c349

Contents?: true

Size: 1.4 KB

Versions: 216

Compression:

Stored size: 1.4 KB

Contents

all = example.rb example.php example.c example.java example.scm example.pl example.js

all:  $(all)

example.rb:   example.eruby
	erubis --pi -l ruby example.eruby > example.rb


example.php:  example.ephp
	erubis --pi -l php example.ephp > example.php

example.c:    example.ec
	erubis --pi -bl c example.ec > example.c

example.java: example.ejava
	erubis --pi -bl java example.ejava > example.java

example.scm:  example.escheme
	erubis --pi -l scheme --func=display example.escheme > example.scm
#	erubis --pi -l scheme example.escheme > example.scm

example.pl:   example.eperl
	erubis --pi -l perl example.eperl > example.pl

example.js:   example.ejs
	erubis --pi -l javascript example.ejs > example.js


###----------

src = example.eruby example.ephp example.ec example.ejava example.escheme example.eperl example.ejs Makefile

clean:
	rm -f `ruby -e 'puts(Dir.glob("*.*") - %w[$(src)])'`
#	rm -f $(all)

compile:  example.bin example.class

example.bin:   example.c
	cc -o example.bin example.c

example.class:  example.java
	jikes example.java

output:  $(all) example.bin example.class
	erubis --pi example.eruby > example.ruby.result
	#ruby example.rb > example.ruby.result
	php example.php > example.php.result
	./example.bin '<aaa>' 'b&b' '"ccc"' > example.c.result
	java example > example.java.result
	gosh example.scm > example.scm.result
	#guile example.scm > example.scm.result
	perl example.pl > example.pl.result

Version data entries

216 entries across 190 versions & 44 rubygems

Version Path
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/pi/Makefile
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile