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
 
7
 
8
 all: camotion-pifaceo
8
 all: camotion-pifaceo
9
 
9
 
10
+install: all
11
+	cp camotion-pifaceo /usr/local/bin/
12
+
10
 camotion-pifaceo: $(OBJ)
13
 camotion-pifaceo: $(OBJ)
11
 	$(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS)
14
 	$(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS)
12
 
15
 

+ 1
- 1
src/mainclass.cpp View File

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

Loading…
Cancel
Save