Updated workflow. Much nicer now!
This commit is contained in:
parent
e6b8cf66e9
commit
410f09ef6b
3 changed files with 5 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
Reference in a new issue