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
|
||||
|
||||
|
||||
libraries:
|
||||
mkdir -p dist/
|
||||
for dir in src/libs/*; do\
|
||||
echo "cd into" $$dir; \
|
||||
for dir in src/*/; do\
|
||||
cd $$dir; \
|
||||
g++ -c *.cpp ; \
|
||||
mv *.o ../../../dist/ ; \
|
||||
mv *.o ../../dist/ ; \
|
||||
done
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#include "strings/strings.cpp"
|
||||
|
||||
int main() {
|
||||
std::cout << getString();
|
||||
std::cout << getString() << std::endl;
|
||||
return 0;
|
||||
}
|
Reference in a new issue