mirror of
https://github.com/RustyRaptor/ProgrammingLanguages.git
synced 2026-12-03 21:55:15 -07:00
Created makefile for nodejs
This commit is contained in:
1 parent
847cd49b56
commit
3cd6d100b3
1 file changed
+4
-34
+4
-34
@@ -2,38 +2,8 @@ red=`tput setaf 1`
|
||||
green=`tput setaf 2`
|
||||
reset=`tput sgr0`
|
||||
|
||||
# Variables so its easy to make changes if I need to (it ended up being helpful)
|
||||
all: test
|
||||
|
||||
all: setup_perl
|
||||
|
||||
setup_perl:
|
||||
cpan File::Slurp
|
||||
|
||||
test: test_python test_perl test_java
|
||||
@echo "${green}###### ORIGINAL FILE ######${reset}"
|
||||
cat test.txt
|
||||
|
||||
test_python: out_python.txt
|
||||
@echo "${green}###### PYTHON RESULT ######${reset}"
|
||||
@cat out_python.txt
|
||||
|
||||
test_perl: out_perl.txt
|
||||
@echo "${green}###### PERL RESULT ######${reset}"
|
||||
@cat out_perl.txt
|
||||
|
||||
test_java: out_java.txt
|
||||
@echo "${green}###### JAVA RESULT ######${reset}"
|
||||
@cat out_java.txt
|
||||
|
||||
|
||||
out_python.txt: test.txt
|
||||
python3 clean_file.py test.txt -o out_python.txt
|
||||
|
||||
out_perl.txt: test.txt
|
||||
perl clean_file.pl --input_file_path test.txt --output_file_path out_perl.txt
|
||||
|
||||
out_java.txt: test.txt
|
||||
java CleanFile.java test.txt out_java.txt
|
||||
|
||||
clean:
|
||||
rm -rf out_java.txt out_python.txt out_perl.txt
|
||||
test: index.js
|
||||
@echo "${green}###### Executing Javascript Program ######${reset}"
|
||||
node index.js
|
||||
Reference in new issue
Block a user