HelloWorld/Makefile
2019-04-15 15:58:35 -05:00

46 lines
918 B
Makefile

compile: c cs java bash php perl python
pkgdirname != basename `git config remote.origin.url` | sed 's/.git$$//'
install: clean
mkdir -p ${pkgdir}/opt/aninix/${pkgdirname}/
rsync -avzp HelloWorld* ${pkgdir}/opt/aninix/${pkgdirname}/
test: compile
python3 -m pytest
clean:
cat .gitignore | xargs -n 1 rm -Rf
diff:
@echo Nothing to do.
reverse:
@echo Nothing to do.
checkperm:
@echo Nothing to do.
c: HelloWorld.c /usr/bin/gcc
gcc -o HelloWorld HelloWorld.c
java: HelloWorld.java /usr/bin/java /usr/bin/javac
javac HelloWorld.java
bash: HelloWorld.bash /usr/bin/bash
#bash HelloWorld.bash
php: HelloWorld.php /usr/bin/php
#php HelloWorld.php
#hack: HelloWorld.php /usr/bin/hhvm
#hhvm --php HelloWorld.php
perl: HelloWorld.pl /usr/bin/perl
#perl ./HelloWorld.pl
python: HelloWorld.py /usr/bin/python3
#python3 ./HelloWorld.py
cs: HelloWorld.cs /usr/bin/mono /usr/bin/mcs
mcs HelloWorld.cs