Sha256: 7f574551cbf7280540bab07b091645d2c126220ea85e8049e66557b6e89d2a21

Contents?: true

Size: 1.49 KB

Versions: 188

Compression:

Stored size: 1.49 KB

Contents

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

all:  $(all)

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


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

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

example.cpp:    example.ecpp
	erubis -bl cpp example.ecpp > example.cpp

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

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

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

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


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

src = example.eruby example.ephp example.ec example.ecpp 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
	g++ -o example.bin2 example.cpp

example.class:  example.java
	jikes example.java

output:  $(all) example.bin example.class
	erubis example.eruby > example.ruby.out
	php example.php > example.php.out
	./example.bin '<aaa>' 'b&b' '"ccc"' > example.c.out
	./example.bin2 '<aaa>' 'b&b' '"ccc"' > example.cpp.out
	java example > example.javexample.bin
	gosh example.scm > example.scm.out
#	guile example.scm > example.scm.out
	perl example.pl > example.pl.out

Version data entries

188 entries across 162 versions & 41 rubygems

Version Path
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.4.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.5 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.4 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.3 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.2 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
brakeman-3.3.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
erubis-bmp-2.7.0.bmp examples/basic/Makefile
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/erubis-2.7.0/examples/basic/Makefile
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/erubis-2.7.0/examples/basic/Makefile
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/erubis-2.7.0/examples/basic/Makefile