1
Fork 0

Updated workflow. Much nicer now!

This commit is contained in:
Jake Howard 2015-10-11 18:41:43 +01:00
parent e6b8cf66e9
commit 410f09ef6b
3 changed files with 5 additions and 6 deletions

View file

@ -1,17 +1,16 @@
BUILD_ARGS = -Wall -Werror -Isrc/libs/ BUILD_ARGS = -Wall -Werror -Isrc/
build: libraries build:
g++ src/main.cpp -Ldist/* $(BUILD_ARGS) -o enigma g++ src/main.cpp -Ldist/* $(BUILD_ARGS) -o enigma
libraries: libraries:
mkdir -p dist/ mkdir -p dist/
for dir in src/libs/*; do\ for dir in src/*/; do\
echo "cd into" $$dir; \
cd $$dir; \ cd $$dir; \
g++ -c *.cpp ; \ g++ -c *.cpp ; \
mv *.o ../../../dist/ ; \ mv *.o ../../dist/ ; \
done done

View file

@ -2,6 +2,6 @@
#include "strings/strings.cpp" #include "strings/strings.cpp"
int main() { int main() {
std::cout << getString(); std::cout << getString() << std::endl;
return 0; return 0;
} }