Menu

#121 make: getversion: Command not found

v1.0_(example)
closed
nobody
None
1
2019-03-17
2019-03-14
Arfrever
No

When building GIFLIB 5.1.7, there are several make: getversion: Command not found errors.
Example for version target which shows only this problem and nothing else:

$ make version
make: getversion: Command not found
make: getversion: Command not found
make: getversion: Command not found
make: getversion: Command not found
make: getversion: Command not found

$ 

Trivial fix:

--- Makefile
+++ Makefile
@@ -24,7 +24,7 @@

 # No user-serviceable parts below this line

-VERSION=$(shell getversion)
+VERSION=$(shell ./getversion)
 LIBMAJOR=7
 LIBMINOR=1
 LIBPOINT=0

Output with this fix:

$ make version
5.1.7
$ 

Discussion

  • rofl0r

    rofl0r - 2019-03-16

    bit me too.
    also, should use := instead of = so the command is evaluated only once.

     
  • Eric S. Raymond

    Eric S. Raymond - 2019-03-17

    Applied. I'll ship 5.1.8 shortly.

     
  • Eric S. Raymond

    Eric S. Raymond - 2019-03-17
    • status: open --> closed
     

Log in to post a comment.