aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSan Jacobs2022-07-29 10:45:37 +0200
committerSan Jacobs2022-07-29 10:45:37 +0200
commit5782dff14768e5cf7e20091bca016013e300e433 (patch)
tree29c9ee239ea60fc6dde50a318557889d09d08bae
parentdad85b5baead280b88a8ba272c0b8cfe63d834cf (diff)
downloadsatscalc-5782dff14768e5cf7e20091bca016013e300e433.tar.gz
satscalc-5782dff14768e5cf7e20091bca016013e300e433.tar.bz2
satscalc-5782dff14768e5cf7e20091bca016013e300e433.zip
Updated makefile and ignore for convenience
-rw-r--r--.gitignore2
-rw-r--r--makefile4
2 files changed, 5 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 5acfdbb..205236c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
__pycache__
-obj/*
+obj/*.o
a.out
notes.txt
diff --git a/makefile b/makefile
index 82dbbf4..e6d7637 100644
--- a/makefile
+++ b/makefile
@@ -19,6 +19,7 @@ a.out: $(OBJECTS)
g++ $(LIBDIR) $(LIBS) $(OBJECTS)
$(OBJECTS): obj/%.o : src/%.cpp
+ mkdir -p obj
g++ -g $(INCLUDE) -c $< -o $@
clean:
@@ -26,3 +27,6 @@ clean:
cleanall:
rm obj/*.o a.out
+
+install: a.out
+ cp a.out /usr/bin/satscalc