Fixed mks installation.

This commit is contained in:
Andrey Parhomenko 2023-02-16 23:02:43 +05:00
parent efa48101b0
commit c3eea5be73
4 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,6 @@ EXEDIR = $(HOME)/exe
APPDIR = $(HOME)/app
SHRDIR = $(HOME)/shr
INCDIR = $SHRDIR/inc
MKINCDIR = $APPDIR/mk/inc
OBJDIR = $SHRDIR/obj
MANDIR = $SHRDIR/man
INSTALLDIRS = $OBJDIR $MANDIR $EXEDIR $INCDIR $APPDIR

View file

@ -26,7 +26,7 @@ build-sh :VQ:
fi
command cd $pwd
done
clean:V:
clean:VQ:
pwd=`pwd`
names=`command cd src/cmd && goblin ls && command cd $pwd`
for name in $names ; do

View file

@ -326,9 +326,11 @@ func Run(args []string) {
arg0 := args[0]
args = args[1:]
if mkincdir := os.Getenv("MKINCDIR") ; mkincdir == "" {
if mkincdir := os.Getenv("MKINCDIR") ;
mkincdir == "" {
homeDir, _ := os.UserHomeDir()
os.Setenv("MKINCDIR", homeDir + "/app/goblin/mk/inc" )
fmt.Println("shit:", os.Getenv("MKINCDIR"))
}
flags := flag.NewFlagSet(arg0, flag.ExitOnError)