HelloWorld/Makefile
2019-04-15 14:53:57 -05:00

46 lines
980 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 -avz --exclude=Makefile --exclude=LICENSE --exclude=.git* --exclude=README . * ${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