Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify a library element as build target? #71

Open
hb-- opened this issue Aug 13, 2013 · 0 comments
Open

How to specify a library element as build target? #71

hb-- opened this issue Aug 13, 2013 · 0 comments
Assignees
Milestone

Comments

@hb--
Copy link

hb-- commented Aug 13, 2013

x.mms contains the rules "l(foo) : foo.obj" and "l(bar) : bar.obj"

$ mms/id
%MMS-I-IDENT, MMS V3.3-4 � Digital Equipment Corporation 1989, 1998. All rights 
reserved. � Electronic Data Systems Limited 1995, 1998 
$
$ mms/noaction/descr=x.mms l(foo)
%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters
 \(FOO\
$ mms/noaction/descr=x.mms "l(foo)

If "''F$Search("L.OLB")'" .EQS. "" Then LIBRARY/Create L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ
$ 
$ mmk/id
%MMK-I-IDENT, this is the MadGoat Make Utility V4.1
-MMK-I-COPYRIGHT, Copyright (c) 2008, Matthew Madison.  See LICENSE.TXT in distribution kit for license information.
$
$ mmk/noaction/descr=x.mms l(foo)
%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters
 \(FOO\
$ mmk/noaction/descr=x.mms "l(foo)
%CLI-W-PARMDEL, invalid parameter delimiter - check use of special characters
 \(FOO\
$ 

Using l.olb(foo) or l(foo=foo.obj) doesn't really change anything.

However, mms' CLD has
Parameter P1, Label=TARG1, Prompt="Targets:", Value( List, TYPE=$FILE )
while mmk's CLD only has a
PARAMETER P1,LABEL=TARGET, VALUE(LIST)

The additional type seems do the trick, or at least some:

$ mmk/noaction/descr=x.mms "l(foo)
IF F$SEARCH("L.OLB") .EQS. "" THEN LIBRARY/CREATE L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ

$ mms/noaction/descr=x.mms "l(foo,bar)

If "''F$Search("L.OLB")'" .EQS. "" Then LIBRARY/Create L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ
If "''F$Search("L.OLB")'" .EQS. "" Then LIBRARY/Create L.OLB
LIBRARY/REPLACE L.OLB BAR.OBJ
$
$ mmk/noaction/descr=x.mms "l(foo,bar)
IF F$SEARCH("L.OLB") .EQS. "" THEN LIBRARY/CREATE L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ
$


$ mms/noaction/descr=x.mms "l(foo)","l(bar)

If "''F$Search("L.OLB")'" .EQS. "" Then LIBRARY/Create L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ
If "''F$Search("L.OLB")'" .EQS. "" Then LIBRARY/Create L.OLB
LIBRARY/REPLACE L.OLB BAR.OBJ
$
$ mmk/noaction/descr=x.mms "l(foo)","l(bar)
IF F$SEARCH("L.OLB") .EQS. "" THEN LIBRARY/CREATE L.OLB
LIBRARY/REPLACE L.OLB FOO.OBJ
IF F$SEARCH("L.OLB") .EQS. "" THEN LIBRARY/CREATE L.OLB
LIBRARY/REPLACE L.OLB BAR.OBJ
$
@ghost ghost assigned tesneddon Sep 4, 2013
@tesneddon tesneddon modified the milestones: V5.1 Release, MMK V5.2 Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants