@profoundlogic/codermake 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,28 +85,50 @@ $(LIBRARY_PATH):
85
85
  define BUILD_RPGLE_PGM
86
86
  $(call SETUP_LOG,$(notdir $@))
87
87
  $(SET_LIBL)
88
- system "crtbndrpg pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('src') tgtccsid(*job) output(*print) dbgview(*all)"
88
+ system "crtbndrpg pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)"
89
89
  endef
90
90
 
91
91
  # Build SQL RPGLE program
92
92
  define BUILD_SQLRPGLE_PGM
93
93
  $(call SETUP_LOG,$(notdir $@))
94
94
  $(SET_LIBL)
95
- system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''src'') tgtccsid(*job) output(*print)') dbgview(*source)"
95
+ system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)"
96
96
  endef
97
97
 
98
98
  # Build RPGLE module
99
99
  define BUILD_RPGLE_MODULE
100
100
  $(call SETUP_LOG,$(notdir $@))
101
101
  $(SET_LIBL)
102
- system "crtrpgmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('src') tgtccsid(*job) output(*print) dbgview(*all)"
102
+ system "crtrpgmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)"
103
103
  endef
104
104
 
105
105
  # Build SQL RPGLE module
106
106
  define BUILD_SQLRPGLE_MODULE
107
107
  $(call SETUP_LOG,$(notdir $@))
108
108
  $(SET_LIBL)
109
- system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''src'') tgtccsid(*job) output(*print)') dbgview(*source)"
109
+ system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)"
110
+ endef
111
+
112
+ # Build ILE CL program (bound)
113
+ define BUILD_CLLE_PGM
114
+ $(call SETUP_LOG,$(notdir $@))
115
+ $(SET_LIBL)
116
+ system "crtbndcl pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)"
117
+ endef
118
+
119
+ # Build OPM CL program
120
+ define BUILD_CLP_PGM
121
+ $(call SETUP_LOG,$(notdir $@))
122
+ $(call CREATE_SOURCE_MEMBER,$<,qclsrc)
123
+ $(SET_LIBL)
124
+ system "crtclpgm pgm($(LIBRARY)/$(basename $(@F))) srcfile($(LIBRARY)/qclsrc) output(*print)"
125
+ endef
126
+
127
+ # Build ILE CL module
128
+ define BUILD_CLLE_MODULE
129
+ $(call SETUP_LOG,$(notdir $@))
130
+ $(SET_LIBL)
131
+ system "crtclmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)"
110
132
  endef
111
133
 
112
134
  # Build program from modules
@@ -34,13 +34,15 @@ MKDIR := mkdir
34
34
 
35
35
  ######
36
36
  # SSH configuration for IBM i connectivity.
37
+ # CODERMAKE_SSH_CONTROL_DIR can be set externally to share sockets (e.g., during tests)
37
38
  ######
39
+ CODERMAKE_SSH_CONTROL_DIR ?= $(CODERMAKE_RULES_DIR)
38
40
  SSH := ssh -C \
39
41
  -o PasswordAuthentication=no \
40
42
  -o StrictHostKeyChecking=no \
41
43
  -o UserKnownHostsFile=tmp/known_hosts \
42
44
  -o ControlMaster=auto \
43
- -o ControlPath=$(CODERMAKE_RULES_DIR)/ssh-%C \
45
+ -o ControlPath=$(CODERMAKE_SSH_CONTROL_DIR)/ssh-%C \
44
46
  -o ControlPersist=10m \
45
47
  -o ServerAliveInterval=60 \
46
48
  -o ServerAliveCountMax=3
@@ -181,6 +183,31 @@ $(call REMOTE_BUILD,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$
181
183
  touch '$@'
182
184
  endef
183
185
 
186
+ # Build ILE CL program (bound)
187
+ define BUILD_CLLE_PGM
188
+ $(call SETUP_LOG,$(notdir $@))
189
+ $(call REMOTE_BUILD,$(filter-out build/%,$^),system "crtbndcl pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)")
190
+ touch '$@'
191
+ endef
192
+
193
+ # Build OPM CL program
194
+ define BUILD_CLP_PGM
195
+ $(call SETUP_LOG,$(notdir $@))
196
+ $(call CREATE_SOURCE_MEMBER,$<,qclsrc)
197
+ $(SSH) $(QSHELL) <<'EOF'
198
+ $(SET_LIBL)
199
+ system "crtclpgm pgm($(LIBRARY)/$(basename $(@F))) srcfile($(LIBRARY)/qclsrc) output(*print)"
200
+ EOF
201
+ touch '$@'
202
+ endef
203
+
204
+ # Build ILE CL module
205
+ define BUILD_CLLE_MODULE
206
+ $(call SETUP_LOG,$(notdir $@))
207
+ $(call REMOTE_BUILD,$(filter-out build/%,$^),system "crtclmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)")
208
+ touch '$@'
209
+ endef
210
+
184
211
  # Build program from modules
185
212
  define BUILD_MODULE_TO_PGM
186
213
  $(call SETUP_LOG,$(notdir $@))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/codermake",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Make wrapper framework for IBM i development that simplifies build rules",
5
5
  "main": "dist/bin/index.js",
6
6
  "type": "module",