@profoundlogic/codermake 1.6.0 → 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/README.md +3 -0
- package/dist/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +1 -1
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/ejs-to-dds.js +1 -1
- package/dist/lib/executor.js +1 -1
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -1
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/dist/makefiles/ibmi.mk +7 -0
- package/dist/makefiles/unix.mk +10 -0
- package/package.json +1 -1
- package/skills/codermake/SKILL.md +5 -1
- package/skills/codermake/references/file-types.md +16 -1
package/package.json
CHANGED
|
@@ -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
|
|
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
|