48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
pkgdirname != basename `git config remote.origin.url` | sed 's/.git$$//'
|
|
|
|
compile: c java bash php perl python cs
|
|
@echo Done
|
|
|
|
install: clean compile
|
|
mkdir -p ${pkgdir}/opt/aninix/${pkgdirname}/
|
|
install -o root -m 0644 ./HelloWorld* ${pkgdir}/opt/aninix/${pkgdirname}/
|
|
|
|
test: compile
|
|
python3 -m pytest
|
|
|
|
clean:
|
|
for i in `cat .gitignore`; do /bin/bash -c "rm -Rf $$i"; done
|
|
|
|
uninstall:
|
|
rm -Rf ${pkgdir}/opt/aninix/${pkgdirname}/
|
|
|
|
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/lib/jvm/java-18-openjdk/bin/javac /usr/lib/jvm/java-18-openjdk/bin/java
|
|
/usr/lib/jvm/java-18-openjdk/bin/javac HelloWorld.java
|
|
|
|
bash: HelloWorld.bash /usr/bin/bash
|
|
#bash HelloWorld.bash
|
|
|
|
php: HelloWorld.php /usr/bin/php
|
|
#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
|