@profoundlogic/codermake 1.5.1 → 1.6.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/codermake",
3
- "version": "1.5.1",
3
+ "version": "1.6.1",
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",
@@ -111,6 +111,9 @@ calcd.pgm: calcd.module | app.bnddir
111
111
 
112
112
  # Create a service program from modules + export list
113
113
  mysrvpgm.srvpgm: mymod.module mymod.exports
114
+
115
+ # Create a service program without export list (exports all procedures)
116
+ mysrvpgm.srvpgm: mymod.module
114
117
  ```
115
118
 
116
119
  When `.srvpgm` or `.bnddir` appear as prerequisites (normal or order-only) on `.pgm` or `.srvpgm` targets built via CRTPGM/CRTSRVPGM, the corresponding `BNDSRVPGM()` and `BNDDIR()` parameters are automatically added to the command. This only applies to module-based targets — for source-based programs (e.g., CRTBNDRPG), `.srvpgm` and `.bnddir` prerequisites are build-ordering dependencies only.
@@ -137,7 +140,8 @@ ENDPGMEXP
137
140
  | `.clp` / `.cl` | `.pgm` | Program (*PGM) | `CRTCLPGM` |
138
141
  | `.proc.sql` | `.pgm` | SQL Procedure (*PGM) | `RUNSQLSTM` |
139
142
  | `.module` (1+) | `.pgm` | Program (*PGM) | `CRTPGM` |
140
- | `.module` + `.exports` or `.bnd` | `.srvpgm` | Service Program (*SRVPGM) | `CRTSRVPGM` |
143
+ | `.module` + `.exports` or `.bnd` | `.srvpgm` | Service Program (*SRVPGM) | `CRTSRVPGM EXPORT(*SRCFILE)` |
144
+ | `.module` (no exports) | `.srvpgm` | Service Program (*SRVPGM) | `CRTSRVPGM EXPORT(*ALL)` |
141
145
  | `.dspf` | `.file` | Display File (*FILE) | `CRTDSPF` |
142
146
  | `.json` (RDF) | `.file` | Display File (*FILE) | `CRTDSPF` |
143
147
  | `.pf` | `.file` | Physical File (*FILE) | `CRTPF` |
@@ -98,7 +98,9 @@ mymod.module: mymod.clle
98
98
 
99
99
  ## Service programs (.srvpgm)
100
100
 
101
- A service program is created from one or more modules plus an export list (`.exports` or `.bnd` file). The export list defines which procedures are visible to callers.
101
+ A service program is created from one or more modules, optionally with an export list (`.exports` or `.bnd` file). The export list defines which procedures are visible to callers.
102
+
103
+ ### With export list
102
104
 
103
105
  ```makefile
104
106
  mymod.module: mymod.rpgle
@@ -107,6 +109,19 @@ mysrvpgm.srvpgm: mymod.module mysrvpgm.exports
107
109
 
108
110
  **CL command:** `CRTSRVPGM SRVPGM(LIB/MYSRVPGM) MODULE(LIB/MYMOD) EXPORT(*SRCFILE) SRCSTMF('src/mysrvpgm.exports')`
109
111
 
112
+ ### Without export list (export all)
113
+
114
+ When no `.exports` or `.bnd` file is listed, all procedures are exported:
115
+
116
+ ```makefile
117
+ mymod.module: mymod.rpgle
118
+ mysrvpgm.srvpgm: mymod.module
119
+ ```
120
+
121
+ **CL command:** `CRTSRVPGM SRVPGM(LIB/MYSRVPGM) MODULE(LIB/MYMOD) EXPORT(*ALL)`
122
+
123
+ ### Binding dependencies
124
+
110
125
  Service programs can also depend on other service programs or binding directories for automatic binding:
111
126
 
112
127
  ```makefile