Browse Source

fixed build error; added install target

tags/v1.0.1^0
Robin Thoni 6 years ago
parent
commit
cedc295d6d
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Makefile
  2. 1
    1
      src/mainclass.cpp

+ 3
- 0
Makefile View File

@@ -7,6 +7,9 @@ OBJ = $(addprefix src/, $(SRC:.cpp=.o))
7 7
 
8 8
 all: camotion-pifaceo
9 9
 
10
+install: all
11
+	cp camotion-pifaceo /usr/local/bin/
12
+
10 13
 camotion-pifaceo: $(OBJ)
11 14
 	$(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS)
12 15
 

+ 1
- 1
src/mainclass.cpp View File

@@ -98,7 +98,7 @@ bool MainClass::build_actions_()
98 98
     }
99 99
     else if (opt == 's')
100 100
     {
101
-      if (arg > UINT_MAX)
101
+      if (arg > INT_MAX)
102 102
         return bad_value_();
103 103
       actions_.push_back([arg]() -> bool
104 104
           {

Loading…
Cancel
Save