OS/2, eCS & ArcaOS - Technical > Programming

GSView - make complains of "No such file or directory"

(1/4) > >>

Dariusz Piatkowski:
I decided to take a stab at building an updated version of GSView (because the pswrite device is no longer present in our ghostscript 9.18 release and the latest GSView verison seems to have it hard-coded instead of picking the device name up from the gvpm.ini file and using that).

Anyways...couple of small tweaks to the makefile, but I'm getting stumped by a reference to two other makefiles: one for common objects and the other is a GSView version mak (auto-updates the GSView header that contains the version info).

I've attached the makefile here, and I'm seeing the following error:


--- Code: ---...
[G:\code\source\os2\gsview-5.0]\usr\bin\make
makefile:85: ".\src\common.mak": No such file or directory
makefile:86: ".\src\gvcver.mak": No such file or directory
makefile:174: *** missing separator (did you mean TAB instead of 8 spaces?).  St
op.
...

--- End code ---

which is a result of the following lines in the main makefile:


--- Code: ---...
#################################################################
# Common

include "$(SRC)common.mak"
include "$(SRC)gvcver.mak"
...

--- End code ---

And yet, from a CLI where I am executing make from I can certainly do a "dir" and both of those files are certainly there:


--- Quote ---[G:\code\source\os2\gsview-5.0]dir .\src\*mak

The volume label in drive G is OS2.
The Volume Serial Number is 45B6:75C3.
Directory of G:\code\source\os2\gsview-5.0\src

11-17-07  4:14p         2,409      0 a---  bzlibmsc.mak
 5-28-11 12:21p         5,677      0 a---  common.mak
 1-17-12  9:26p        23,686      0 a---  gvc.mak
 1-28-22 10:21p         1,802      0 a---  gvcver.mak

--- End quote ---

So what am I tripping over here?

Is this a OS/2 vs Linux path separator issue?

For what it's worth I tried the "/" vs "\" with no difference.

Thanks!

Dariusz Piatkowski:
Ahh...fixed a couple more issues in the main makefile (spaces instead of TABs), now it looks like i'm getting a bit further, but still hitting this:


--- Quote ---[G:\code\source\os2\gsview-5.0]g:\code\tools\vslick\os2\gcc_build.cmd
g:\code\tools\vslick\os2\gcc_build.cmd                               
makefile:85: ".\src\common.mak": No such file or directory           
makefile:86: ".\src\gvcver.mak": No such file or directory           
make.exe: *** No rule to make target `".\src\gvcver.mak"'.  Stop.     
Exited                                                               

--- End quote ---

gvcver.mak is short:


--- Code: ---# GSview version
GSVIEW_VERSION=50
GSVIEW_DOT_VERSION=5.0
GSVIEW_DATE=2022-01-28

$(OD)gsvver.h: $(ECHOGSV) $(SRC)gvcver.mak
        $(ECHOGSV) -w $(OD)gsvver.h "/* gsvver.h - automatically generated by gvcver.mak */"
        $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_VERSION " $(GSVIEW_VERSION)
        $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DOT_VERSION " -x 22 $(GSVIEW_DOT_VERSION) -x 22
        $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DATE " -x 22 $(GSVIEW_DATE) -x 22
        $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_DOCPATH " -x 22 $(GSVIEW_DOCPATH) "/gsview-" $(GSVIEW_DOT_VERSION) "/" -x 22
        $(ECHOGSV) -a $(OD)gsvver.h -x 23 "define GSVIEW_ETCPATH " -x 22 $(GSVIEW_ETCPATH) "/gsview/" -x 22

--- End code ---

So you can tell that it simply auto-creates gsvver.h here, based on the variables that are defined in the gvcver.mak.

Looks to me like make.exe doesn't know what to do with that makefile though...

Dave Yeo:
Try doing "SET MAKESHELL=sh.exe" and retry

Dariusz Piatkowski:

--- Quote from: Dave Yeo on January 29, 2022, 06:48:07 am ---Try doing "SET MAKESHELL=sh.exe" and retry

--- End quote ---

Thanks Dave, but that did not work.

No sense spending huge time on this...I get the idea behind this, but this software isn't going to go through numerous future changes. Heck, all I need is to change the printer device name here. I'm going to build that gsvver.h file manually and take that include out of the makefile.

Dariusz Piatkowski:
Hmm...so much for that idea...LOL, b/c I now have the same issue with common.mak, and as best as I can tell there is only a single target in there, that being:


--- Code: ---...
#################################################################
# Cleanup

commonclean:
-$(RM) $(CLEAN1)
-$(RM) $(CLEAN2)
-$(RM) $(CLEAN3)
...

--- End code ---

Alright...time to get edumacated further on the inner depths of 'make'...LOL!

Navigation

[0] Message Index

[#] Next page

Go to full version