Reorganise modules
Michael Grünewald
9 years ago
24 | 24 | .include "../../bps/bps.files.mk" |
25 | 25 | .include "../../bps/bps.clean.mk" |
26 | 26 | .include "../../bps/bps.usertarget.mk" |
27 | .include "../../misc/misc.script.mk" | |
27 | .include "../../script/script.shell.mk" | |
28 | 28 | |
29 | 29 | ### End of file `project.mk' |
13 | 13 | # are also available at |
14 | 14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt |
15 | 15 | |
16 | .include "../../misc/misc.script.mk" | |
16 | .include "../../script/script.shell.mk" | |
17 | 17 | |
18 | 18 | ### End of file `script.mk' |
18 | 18 | SUBDIR+= texmf |
19 | 19 | SUBDIR+= langc |
20 | 20 | SUBDIR+= noweb |
21 | SUBDIR+= config | |
22 | SUBDIR+= script | |
21 | 23 | SUBDIR+= misc |
22 | 24 | SUBDIR+= www |
23 | 25 | SUBDIR+= support |
0 | ### Makefile -- Configuration files | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Thu Nov 20 14:08:48 CET 2014 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | FILES= conf.dotfile.mk | |
17 | FILES+= conf.freebsd.mk | |
18 | ||
19 | .include "project.mk" | |
20 | ||
21 | ### End of file `Makefile' |
0 | ### conf.dotfile.mk -- BSD Makefile for dotfiles | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Tue Sep 12 15:33:20 CEST 2006 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # DOTFILE+= dot.cshrc | |
20 | # DOTFILE+= dot.emacs | |
21 | # DOTFILE+= dot.gnus | |
22 | # | |
23 | # DOTFILEDIR = ${HOME} # This is the default | |
24 | # .include "conf.dotfile.mk" | |
25 | ||
26 | ||
27 | ### DESCRIPTION | |
28 | ||
29 | # Install dotfiles. | |
30 | ||
31 | FILESGROUPS+= DOTFILE | |
32 | DOTFILEDIR?= ${HOME} | |
33 | ||
34 | .for item in ${DOTFILE} | |
35 | .if !defined(DOTFILENAME.${item:T}) | |
36 | DOTFILENAME.${item:T}=${item:C/^dot//} | |
37 | .endif | |
38 | .endfor | |
39 | ||
40 | USE_SWITCH_CREDENTIALS=no | |
41 | ||
42 | .include "bps.init.mk" | |
43 | .include "bps.clean.mk" | |
44 | .include "bps.files.mk" | |
45 | .include "bps.usertarget.mk" | |
46 | ||
47 | ### End of file `conf.dotfile.mk' |
0 | ### conf.freebsd.mk -- Installation of configuration files for FreeBSD | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Sam Oct 3 2009 18:25:04 CEST | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | # This module defines several FILESGROUPS that can be used to install | |
17 | # configuration files on FreeBSD systems. | |
18 | # | |
19 | # These files groups are: | |
20 | # | |
21 | # BASE For base system configuration files, in /etc | |
22 | # PORT For port configuration files, in ${LOCALBASE}/etc | |
23 | # KERN For kernel configuration files | |
24 | # BOOT For boot configuration files, in /boot | |
25 | # CSUP For csup configuration files, in /etc/csup | |
26 | # FDI For device file informations used by HAL | |
27 | # RC For RC files used to boot the system | |
28 | # KDE For KDE configuration files | |
29 | # XDM For XDM configuration files, in ${LOCALBASE}/lib/X11/xdm | |
30 | # XDMPIXMAP For XDM pixmaps | |
31 | # XFCE For XFCE configuration files | |
32 | ||
33 | PREFIX?= | |
34 | LOCALBASE?= /usr/local | |
35 | ||
36 | ||
37 | # BASE | |
38 | # | |
39 | # Base system configuration files | |
40 | # | |
41 | # Such as rc.conf, hosts, networks, groups, etc. | |
42 | ||
43 | FILESGROUPS+= BASE | |
44 | ||
45 | BASEDIR?= /etc | |
46 | BASEOWN?= root | |
47 | BASEGRP?= wheel | |
48 | BASEMODE?= 444 | |
49 | BASEDIR.sshd_config = ${BASEDIR}/ssh | |
50 | BASEDIR.ssh_config = ${BASEDIR}/ssh | |
51 | BASEMODE.hostpad.conf = 400 | |
52 | ||
53 | ||
54 | # RC | |
55 | # | |
56 | # Setting up services at boot time | |
57 | ||
58 | FILESGROUPS+= RC | |
59 | ||
60 | RCDIR?= ${LOCALBASE}/etc/rc.d | |
61 | RCOWN?= ${BASEOWN} | |
62 | RCGRP?= ${BASEGRP} | |
63 | RCMODE?= 555 | |
64 | ||
65 | .if defined(RC)&&!empty(RC) | |
66 | .if ${RC} == "f77" | |
67 | RC:= | |
68 | .endif | |
69 | .endif | |
70 | ||
71 | ||
72 | # PORT | |
73 | # | |
74 | # Third party packages configurations files | |
75 | # | |
76 | # Such as sudoers, pkgtools.conf, apache configuration files, etc. | |
77 | ||
78 | FILESGROUPS+= PORT | |
79 | ||
80 | PORTDIR?= ${LOCALBASE}/etc | |
81 | PORTOWN?= ${BASEOWN} | |
82 | PORTGRP?= ${BASEGRP} | |
83 | PORTMODE?= 444 | |
84 | ||
85 | PORTMODE.sudoers = 440 | |
86 | PORTDIR.PolicyKit.conf = ${PORTDIR}/PolicyKit | |
87 | PORTDIR.fonts-local.conf = ${PORTDIR}/fonts | |
88 | PORTNAME.fonts-local.conf = local.conf | |
89 | ||
90 | # FDI | |
91 | # | |
92 | # Device information files for the HAL system | |
93 | ||
94 | FILESGROUPS+= FDI | |
95 | ||
96 | FDIDIR?= ${LOCALBASE}/share/hal/fdi/preprobe/20thirdparty | |
97 | FDIOWN?= ${BASEOWN} | |
98 | FDIGRP?= ${BASEGRP} | |
99 | FDIMODE?= 444 | |
100 | ||
101 | ||
102 | # KERN | |
103 | # | |
104 | # Kernel configuration files | |
105 | # | |
106 | # The machine is guessed from the MACHINE variable. Note: it would | |
107 | # be nice to define a group for each supported machine type, so that | |
108 | # kernels for various machines can be prepared. | |
109 | ||
110 | FILESGROUPS+= KERN | |
111 | ||
112 | KERNDIR?= /usr/src/sys/${MACHINE}/conf | |
113 | KERNOWN?= ${BASEOWN} | |
114 | KERNGRP?= ${BASEGRP} | |
115 | KERNMODE?= 444 | |
116 | ||
117 | ||
118 | # BOOT | |
119 | # | |
120 | # Loader configuration files | |
121 | # | |
122 | # These files usually go under /boot. | |
123 | ||
124 | FILESGROUPS+= BOOT | |
125 | ||
126 | BOOTDIR?= /boot | |
127 | BOOTOWN?= ${BASEOWN} | |
128 | BOOTGRP?= ${BASEGRP} | |
129 | BOOTMODE?= 444 | |
130 | ||
131 | ||
132 | # CSUP | |
133 | # | |
134 | # CVS Update | |
135 | # | |
136 | # Csup is a software package for updating collections of files | |
137 | # across a network. It is used to keep FreeBSD sources and the ports | |
138 | # collection in sync. Its configuration files goes under /etc/csup. | |
139 | ||
140 | FILESGROUPS+= CSUP | |
141 | ||
142 | CSUPDIR?= /etc/csup | |
143 | CSUPOWN?= ${BASEOWN} | |
144 | CSUPGRP?= ${BASEGRP} | |
145 | CSUPMODE?= 444 | |
146 | ||
147 | CSUPDIR.refuse-supfile =/var/db/sup | |
148 | CSUPNAME.refuse-supfile = refuse | |
149 | ||
150 | ||
151 | # XORG | |
152 | # | |
153 | # X server configuration files | |
154 | # | |
155 | # Theses files go under /etc/X11. Note that these files must be read | |
156 | # somewhere to be effective, for instance in the Xsession script. | |
157 | ||
158 | FILESGROUPS+= XORG | |
159 | ||
160 | XORGDIR?= /etc/X11 | |
161 | XORGOWN?= ${BASEOWN} | |
162 | XORGGRP?= ${BASEGRP} | |
163 | XORGMODE?= 444 | |
164 | ||
165 | ||
166 | # KDE | |
167 | # | |
168 | # K Desktop Environment | |
169 | # | |
170 | # KDE is a desktop environment. Among other bits of software, it | |
171 | # provides a display manager daemon, that is a system component. We | |
172 | # handle KDE4. | |
173 | ||
174 | FILESGROUPS+= KDE | |
175 | ||
176 | KDEDIR?= ${LOCALBASE}/kde4/share/config | |
177 | KDEOWN?= ${BASEOWN} | |
178 | KDEGRP?= ${BASEGRP} | |
179 | KDEMODE?= 444 | |
180 | ||
181 | KDEDIR.kdmrc = ${KDEDIR}/kdm | |
182 | ||
183 | ||
184 | # XDM | |
185 | # | |
186 | # X Display Manager | |
187 | # | |
188 | # XDM is the display manager daemon shipped with Xorg. It is highly | |
189 | # configurable, see comments in the relevant files. | |
190 | ||
191 | FILESGROUPS+= XDM | |
192 | XDMDIR?= ${LOCALBASE}/lib/X11/xdm | |
193 | XDMOWN?= ${BASEOWN} | |
194 | XDMGRP?= ${BASEGRP} | |
195 | XDMMODE?= 444 | |
196 | ||
197 | XDMMODE.GiveConsole?= 555 | |
198 | XDMMODE.TakeConsole?= 555 | |
199 | XDMMODE.Xreset?= 555 | |
200 | XDMMODE.Xsession?= 555 | |
201 | XDMMODE.Xstartup?= 555 | |
202 | XDMMODE.Xwilling?= 555 | |
203 | ||
204 | .for file in ${XDM:MXsetup_*} | |
205 | XDMMODE.${file:T}?= 555 | |
206 | .endfor | |
207 | ||
208 | FILESGROUPS+= XDMPIXMAP | |
209 | XDMPIXMAPDIR?= ${LOCALBASE}/lib/X11/xdm/pixmaps | |
210 | XDMPIXMAPOWN?= ${BASEOWN} | |
211 | XDMPIXMAPGRP?= ${BASEGRP} | |
212 | XDMPIXMAPMODE?= 444 | |
213 | ||
214 | ||
215 | ||
216 | # Images goes under ${XDMDIR}/pixmaps | |
217 | .for suffix in png gif jpg jpeg xpm | |
218 | .for file in ${XDM:M*.${suffix}} | |
219 | XDMDIR.${file:T}?= ${XDMDIR}/pixmaps | |
220 | .endfor | |
221 | .endfor | |
222 | ||
223 | ||
224 | # | |
225 | # Epilogue | |
226 | # | |
227 | ||
228 | USE_SWITCH_CREDENTIALS = yes | |
229 | ||
230 | .include "bps.init.mk" | |
231 | .include "bps.credentials.mk" | |
232 | .include "bps.clean.mk" | |
233 | .include "bps.files.mk" | |
234 | .include "bps.usertarget.mk" | |
235 | ||
236 | ### End of file `conf.freebsd.mk' |
0 | ### Makefile -- Collection de makefiles `misc' | |
0 | ### Makefile -- Miscellaneous modules | |
1 | 1 | |
2 | 2 | # Author: Michael Grünewald |
3 | # Date: Sam 7 jul 2007 18:09:47 CEST | |
3 | # Date: Sam Jul 7 2007 18:09:47 CEST | |
4 | 4 | |
5 | FILES+= conf.freebsd.mk | |
6 | FILES+= misc.script.mk | |
7 | FILES+= misc.elisp.mk | |
8 | FILES+= misc.dotfile.mk | |
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | FILES= elisp.lib.mk | |
9 | 17 | |
10 | 18 | .include "project.mk" |
11 | 19 |
0 | ### conf.freebsd.mk -- Installation of configuration files for FreeBSD | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Sam 3 oct 2009 18:25:04 CEST | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | # This module defines several FILESGROUPS that can be used to install | |
17 | # configuration files on FreeBSD systems. | |
18 | # | |
19 | # These files groups are: | |
20 | # | |
21 | # BASE For base system configuration files, in /etc | |
22 | # PORT For port configuration files, in ${LOCALBASE}/etc | |
23 | # KERN For kernel configuration files | |
24 | # BOOT For boot configuration files, in /boot | |
25 | # CSUP For csup configuration files, in /etc/csup | |
26 | # FDI For device file informations used by HAL | |
27 | # RC For RC files used to boot the system | |
28 | # KDE For KDE configuration files | |
29 | # XDM For XDM configuration files, in ${LOCALBASE}/lib/X11/xdm | |
30 | # XDMPIXMAP For XDM pixmaps | |
31 | # XFCE For XFCE configuration files | |
32 | ||
33 | PREFIX?= | |
34 | LOCALBASE?= /usr/local | |
35 | ||
36 | ||
37 | # BASE | |
38 | # | |
39 | # Base system configuration files | |
40 | # | |
41 | # Such as rc.conf, hosts, networks, groups, etc. | |
42 | ||
43 | FILESGROUPS+= BASE | |
44 | ||
45 | BASEDIR?= /etc | |
46 | BASEOWN?= root | |
47 | BASEGRP?= wheel | |
48 | BASEMODE?= 444 | |
49 | BASEDIR.sshd_config = ${BASEDIR}/ssh | |
50 | BASEDIR.ssh_config = ${BASEDIR}/ssh | |
51 | BASEMODE.hostpad.conf = 400 | |
52 | ||
53 | ||
54 | # RC | |
55 | # | |
56 | # Setting up services at boot time | |
57 | ||
58 | FILESGROUPS+= RC | |
59 | ||
60 | RCDIR?= ${LOCALBASE}/etc/rc.d | |
61 | RCOWN?= ${BASEOWN} | |
62 | RCGRP?= ${BASEGRP} | |
63 | RCMODE?= 555 | |
64 | ||
65 | .if defined(RC)&&!empty(RC) | |
66 | .if ${RC} == "f77" | |
67 | RC:= | |
68 | .endif | |
69 | .endif | |
70 | ||
71 | ||
72 | # PORT | |
73 | # | |
74 | # Third party packages configurations files | |
75 | # | |
76 | # Such as sudoers, pkgtools.conf, apache configuration files, etc. | |
77 | ||
78 | FILESGROUPS+= PORT | |
79 | ||
80 | PORTDIR?= ${LOCALBASE}/etc | |
81 | PORTOWN?= ${BASEOWN} | |
82 | PORTGRP?= ${BASEGRP} | |
83 | PORTMODE?= 444 | |
84 | ||
85 | PORTMODE.sudoers = 440 | |
86 | PORTDIR.PolicyKit.conf = ${PORTDIR}/PolicyKit | |
87 | PORTDIR.fonts-local.conf = ${PORTDIR}/fonts | |
88 | PORTNAME.fonts-local.conf = local.conf | |
89 | ||
90 | # FDI | |
91 | # | |
92 | # Device information files for the HAL system | |
93 | ||
94 | FILESGROUPS+= FDI | |
95 | ||
96 | FDIDIR?= ${LOCALBASE}/share/hal/fdi/preprobe/20thirdparty | |
97 | FDIOWN?= ${BASEOWN} | |
98 | FDIGRP?= ${BASEGRP} | |
99 | FDIMODE?= 444 | |
100 | ||
101 | ||
102 | # KERN | |
103 | # | |
104 | # Kernel configuration files | |
105 | # | |
106 | # The machine is guessed from the MACHINE variable. Note: it would | |
107 | # be nice to define a group for each supported machine type, so that | |
108 | # kernels for various machines can be prepared. | |
109 | ||
110 | FILESGROUPS+= KERN | |
111 | ||
112 | KERNDIR?= /usr/src/sys/${MACHINE}/conf | |
113 | KERNOWN?= ${BASEOWN} | |
114 | KERNGRP?= ${BASEGRP} | |
115 | KERNMODE?= 444 | |
116 | ||
117 | ||
118 | # BOOT | |
119 | # | |
120 | # Loader configuration files | |
121 | # | |
122 | # These files usually go under /boot. | |
123 | ||
124 | FILESGROUPS+= BOOT | |
125 | ||
126 | BOOTDIR?= /boot | |
127 | BOOTOWN?= ${BASEOWN} | |
128 | BOOTGRP?= ${BASEGRP} | |
129 | BOOTMODE?= 444 | |
130 | ||
131 | ||
132 | # CSUP | |
133 | # | |
134 | # CVS Update | |
135 | # | |
136 | # Csup is a software package for updating collections of files | |
137 | # across a network. It is used to keep FreeBSD sources and the ports | |
138 | # collection in sync. Its configuration files goes under /etc/csup. | |
139 | ||
140 | FILESGROUPS+= CSUP | |
141 | ||
142 | CSUPDIR?= /etc/csup | |
143 | CSUPOWN?= ${BASEOWN} | |
144 | CSUPGRP?= ${BASEGRP} | |
145 | CSUPMODE?= 444 | |
146 | ||
147 | CSUPDIR.refuse-supfile =/var/db/sup | |
148 | CSUPNAME.refuse-supfile = refuse | |
149 | ||
150 | ||
151 | # XORG | |
152 | # | |
153 | # X server configuration files | |
154 | # | |
155 | # Theses files go under /etc/X11. Note that these files must be read | |
156 | # somewhere to be effective, for instance in the Xsession script. | |
157 | ||
158 | FILESGROUPS+= XORG | |
159 | ||
160 | XORGDIR?= /etc/X11 | |
161 | XORGOWN?= ${BASEOWN} | |
162 | XORGGRP?= ${BASEGRP} | |
163 | XORGMODE?= 444 | |
164 | ||
165 | ||
166 | # KDE | |
167 | # | |
168 | # K Desktop Environment | |
169 | # | |
170 | # KDE is a desktop environment. Among other bits of software, it | |
171 | # provides a display manager daemon, that is a system component. We | |
172 | # handle KDE4. | |
173 | ||
174 | FILESGROUPS+= KDE | |
175 | ||
176 | KDEDIR?= ${LOCALBASE}/kde4/share/config | |
177 | KDEOWN?= ${BASEOWN} | |
178 | KDEGRP?= ${BASEGRP} | |
179 | KDEMODE?= 444 | |
180 | ||
181 | KDEDIR.kdmrc = ${KDEDIR}/kdm | |
182 | ||
183 | ||
184 | # XDM | |
185 | # | |
186 | # X Display Manager | |
187 | # | |
188 | # XDM is the display manager daemon shipped with Xorg. It is highly | |
189 | # configurable, see comments in the relevant files. | |
190 | ||
191 | FILESGROUPS+= XDM | |
192 | XDMDIR?= ${LOCALBASE}/lib/X11/xdm | |
193 | XDMOWN?= ${BASEOWN} | |
194 | XDMGRP?= ${BASEGRP} | |
195 | XDMMODE?= 444 | |
196 | ||
197 | XDMMODE.GiveConsole?= 555 | |
198 | XDMMODE.TakeConsole?= 555 | |
199 | XDMMODE.Xreset?= 555 | |
200 | XDMMODE.Xsession?= 555 | |
201 | XDMMODE.Xstartup?= 555 | |
202 | XDMMODE.Xwilling?= 555 | |
203 | ||
204 | .for file in ${XDM:MXsetup_*} | |
205 | XDMMODE.${file:T}?= 555 | |
206 | .endfor | |
207 | ||
208 | FILESGROUPS+= XDMPIXMAP | |
209 | XDMPIXMAPDIR?= ${LOCALBASE}/lib/X11/xdm/pixmaps | |
210 | XDMPIXMAPOWN?= ${BASEOWN} | |
211 | XDMPIXMAPGRP?= ${BASEGRP} | |
212 | XDMPIXMAPMODE?= 444 | |
213 | ||
214 | ||
215 | ||
216 | # Images goes under ${XDMDIR}/pixmaps | |
217 | .for suffix in png gif jpg jpeg xpm | |
218 | .for file in ${XDM:M*.${suffix}} | |
219 | XDMDIR.${file:T}?= ${XDMDIR}/pixmaps | |
220 | .endfor | |
221 | .endfor | |
222 | ||
223 | ||
224 | # | |
225 | # Epilogue | |
226 | # | |
227 | ||
228 | USE_SWITCH_CREDENTIALS = yes | |
229 | ||
230 | .include "bps.init.mk" | |
231 | .include "bps.credentials.mk" | |
232 | .include "bps.clean.mk" | |
233 | .include "bps.files.mk" | |
234 | .include "bps.usertarget.mk" | |
235 | ||
236 | ### End of file `conf.freebsd.mk' |
0 | ### elisp.lib.mk -- Manage Emacs Lisp Directories | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Fri Feb 10 17:59:16 2006 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # SRCS+= module1.el | |
20 | # SRCS+= module2.el | |
21 | # | |
22 | # ELISPC.module1.elc = A command to compile my elisp thing | |
23 | # ELISPMODE.module2.elc = 400 | |
24 | # | |
25 | # ELISP_INSTALL_SRC.module2.el = no | |
26 | # | |
27 | # .include "elisp.lib.mk" | |
28 | ||
29 | ||
30 | ### DESCRIPTION | |
31 | ||
32 | # Ce module compile et installe des modules EMACS LISP. Le répertoire | |
33 | # d'installation est déterminé par la valeur de ELISPDIR | |
34 | # (/share/emacs/site-lisp). | |
35 | # | |
36 | # La variable ELISP_INSTALL_SRC (yes) contrôle l'installation des | |
37 | # fichiers source avec les fichiers byte-code. | |
38 | ||
39 | FILESGROUPS+= ELISP | |
40 | ELISP_INSTALL_SRC = yes | |
41 | ||
42 | ELISPDIR?= ${datarootdir}/emacs/site-lisp | |
43 | ELISPC?= emacs -batch -f batch-byte-compile | |
44 | ||
45 | .if defined (SRCS) && !empty(SRCS:M*.el) | |
46 | ||
47 | ELISP+= ${SRCS:M*.el:.el=.elc} | |
48 | ||
49 | .for file in ${SRCS:M*.el} | |
50 | ||
51 | # | |
52 | # Installation des fichiers sources | |
53 | # | |
54 | ||
55 | .if !defined(ELISP_INSTALL_SRC.${file}) | |
56 | ELISP_INSTALL_SRC.${file}=${ELISP_INSTALL_SRC} | |
57 | .endif | |
58 | ||
59 | .if ${ELISP_INSTALL_SRC.${file}} == yes | |
60 | ELISP+=${file} | |
61 | .endif | |
62 | .endfor | |
63 | ||
64 | ||
65 | .for obj in ${SRCS:M*.el:.el=.elc} | |
66 | ||
67 | # | |
68 | # Fichiers à nettoyer | |
69 | # | |
70 | ||
71 | CLEANFILES+= ${obj} | |
72 | ||
73 | # | |
74 | # Calcul de la ligne de compilation | |
75 | # | |
76 | ||
77 | .if !defined(ELISPC.${obj}) | |
78 | ELISPC.${obj} = ${ELISPC} | |
79 | .endif | |
80 | ||
81 | ${obj}: ${obj:.elc=.el} | |
82 | ${ELISPC.${obj}} ${.ALLSRC} | |
83 | ||
84 | ||
85 | .endfor | |
86 | ||
87 | .endif | |
88 | ||
89 | .include "bps.init.mk" | |
90 | .include "bps.clean.mk" | |
91 | .include "bps.files.mk" | |
92 | .include "bps.usertarget.mk" | |
93 | ||
94 | ### End of file `elisp.lib.mk' |
0 | ### misc.dotfile.mk -- BSD Makefile for dotfiles | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Tue Sep 12 15:33:20 CEST 2006 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # DOTFILE+= dot.cshrc | |
20 | # DOTFILE+= dot.emacs | |
21 | # DOTFILE+= dot.gnus | |
22 | # | |
23 | # DOTFILEDIR = ${HOME} # This is the default | |
24 | # .include "misc.dotfile.mk" | |
25 | ||
26 | ||
27 | ### DESCRIPTION | |
28 | ||
29 | # Install dotfiles. | |
30 | ||
31 | FILESGROUPS+= DOTFILE | |
32 | DOTFILEDIR?= ${HOME} | |
33 | ||
34 | .for item in ${DOTFILE} | |
35 | .if !defined(DOTFILENAME.${item:T}) | |
36 | DOTFILENAME.${item:T}=${item:C/^dot//} | |
37 | .endif | |
38 | .endfor | |
39 | ||
40 | USE_SWITCH_CREDENTIALS=no | |
41 | ||
42 | .include "bps.init.mk" | |
43 | .include "bps.clean.mk" | |
44 | .include "bps.files.mk" | |
45 | .include "bps.usertarget.mk" | |
46 | ||
47 | ### End of file `misc.dotfile.mk' |
0 | ### misc.elisp.mk -- Manage Emacs Lisp Directories | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Fri Feb 10 17:59:16 2006 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # SRCS+= module1.el | |
20 | # SRCS+= module2.el | |
21 | # | |
22 | # ELISPC.module1.elc = A command to compile my elisp thing | |
23 | # ELISPMODE.module2.elc = 400 | |
24 | # | |
25 | # ELISP_INSTALL_SRC.module2.el = no | |
26 | # | |
27 | # .include "misc.elisp.mk" | |
28 | ||
29 | ||
30 | ### DESCRIPTION | |
31 | ||
32 | # Ce module compile et installe des modules EMACS LISP. Le répertoire | |
33 | # d'installation est déterminé par la valeur de ELISPDIR | |
34 | # (/share/emacs/site-lisp). | |
35 | # | |
36 | # La variable ELISP_INSTALL_SRC (yes) contrôle l'installation des | |
37 | # fichiers source avec les fichiers byte-code. | |
38 | ||
39 | FILESGROUPS+= ELISP | |
40 | ELISP_INSTALL_SRC = yes | |
41 | ||
42 | ELISPDIR?= ${datarootdir}/emacs/site-lisp | |
43 | ELISPC?= emacs -batch -f batch-byte-compile | |
44 | ||
45 | .if defined (SRCS) && !empty(SRCS:M*.el) | |
46 | ||
47 | ELISP+= ${SRCS:M*.el:.el=.elc} | |
48 | ||
49 | .for file in ${SRCS:M*.el} | |
50 | ||
51 | # | |
52 | # Installation des fichiers sources | |
53 | # | |
54 | ||
55 | .if !defined(ELISP_INSTALL_SRC.${file}) | |
56 | ELISP_INSTALL_SRC.${file}=${ELISP_INSTALL_SRC} | |
57 | .endif | |
58 | ||
59 | .if ${ELISP_INSTALL_SRC.${file}} == yes | |
60 | ELISP+=${file} | |
61 | .endif | |
62 | .endfor | |
63 | ||
64 | ||
65 | .for obj in ${SRCS:M*.el:.el=.elc} | |
66 | ||
67 | # | |
68 | # Fichiers à nettoyer | |
69 | # | |
70 | ||
71 | CLEANFILES+= ${obj} | |
72 | ||
73 | # | |
74 | # Calcul de la ligne de compilation | |
75 | # | |
76 | ||
77 | .if !defined(ELISPC.${obj}) | |
78 | ELISPC.${obj} = ${ELISPC} | |
79 | .endif | |
80 | ||
81 | ${obj}: ${obj:.elc=.el} | |
82 | ${ELISPC.${obj}} ${.ALLSRC} | |
83 | ||
84 | ||
85 | .endfor | |
86 | ||
87 | .endif | |
88 | ||
89 | .include "bps.init.mk" | |
90 | .include "bps.clean.mk" | |
91 | .include "bps.files.mk" | |
92 | .include "bps.usertarget.mk" | |
93 | ||
94 | ### End of file `misc.elisp.mk' |
0 | ### misc.script.mk -- Development of shell scripts | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Fri 10 Feb 2006 10:40:49 GMT | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # SCRIPT = mp2eps.sh | |
20 | # SCRIPT+= mp2pdf.sh | |
21 | # SCRIPT+= mp2png.sh | |
22 | # | |
23 | # SCRIPTLIB+= mp2pnglib.sh | |
24 | # | |
25 | # | |
26 | # TMPDIR = /var/run/tmp | |
27 | # | |
28 | # REPLACE = PREFIX TMPDIR | |
29 | # | |
30 | # .include "misc.script.mk" | |
31 | ||
32 | ||
33 | ### DESCRIPTION | |
34 | ||
35 | # This modules handles the configuration and installation of | |
36 | # scripts. The target language is the Bourne shell but other | |
37 | # scripting languages are supported as well. | |
38 | ||
39 | ||
40 | # Scripts and Libraries: | |
41 | # | |
42 | # We consider two groups of files: script programs (SCRIPT) and script | |
43 | # libraries (SCRIPTLIB). | |
44 | ||
45 | ||
46 | # Configuration: | |
47 | # | |
48 | # We support configuration of scripts by allowing replacement | |
49 | # of some fixed strings in the file. This completes the similar | |
50 | # feature of `autoconf`. This replacement is only performed in | |
51 | # script programs and not in script libraries. | |
52 | ||
53 | ||
54 | # Variables: | |
55 | # | |
56 | # SCRIPT | |
57 | # List of script programs to install | |
58 | # | |
59 | # The variables BINDIR, BINMODE, BINOWN and BINGRP | |
60 | # parametrise the installation. | |
61 | # | |
62 | # | |
63 | # SCRIPTLIB | |
64 | # List of script libraries to install | |
65 | # | |
66 | # The variables SCRIPTLIBDIR, SCRIPTLIBMODE, SCRIPTLIBOWN and | |
67 | # SCRIPTLIBGRP parametrise the installation. | |
68 | # | |
69 | # The SCRIPTLIBDIR variable defaults to | |
70 | # `${SHAREDIR}${PACKAGEDIR}` but other sensible locations could | |
71 | # be `${LIBDIR}/perl5/5.12.4/${PACKAGEDIR}`. | |
72 | # | |
73 | # | |
74 | # PACKAGE | |
75 | # Name of the application | |
76 | # | |
77 | # It must be a UNIX filename and can be defined to let script | |
78 | # libraries be installed in an application specific subdirectory. | |
79 | # | |
80 | # | |
81 | # REPLACE | |
82 | # List of variables to be replaced in the configuration step | |
83 | # | |
84 | # The declaration `REPLACE=PREFIX` arranges so that the sequence | |
85 | # `@prefix@` is replaced by the value of `PREFIX` known to `make`. | |
86 | # | |
87 | # The case conversion should help to follow the different | |
88 | # conventions used when writing makefiles and using autoconf. | |
89 | # | |
90 | # The pipe character `|` must not appear in replacement text of the | |
91 | # variables enumerated by REPLACE. | |
92 | ||
93 | ||
94 | ### IMPLEMENTATION | |
95 | ||
96 | .if !target(__<misc.script.mk>__) | |
97 | __<misc.script.mk>__: | |
98 | ||
99 | .include "bps.init.mk" | |
100 | ||
101 | ||
102 | # | |
103 | # Replacement of variables | |
104 | # | |
105 | ||
106 | .if defined(REPLACE)&&!empty(REPLACE) | |
107 | .for var in ${REPLACE} | |
108 | _SCRIPT_SED+= -e 's|@${var:L}@|${${var:S/|/\|/g}}|g' | |
109 | .endfor | |
110 | .endif | |
111 | ||
112 | ||
113 | # | |
114 | # Script programs | |
115 | # | |
116 | ||
117 | _SCRIPT_EXTS?= pl sh bash py sed awk | |
118 | ||
119 | .for ext in ${_SCRIPT_EXTS} | |
120 | .for script in ${SCRIPT:M*.${ext}} | |
121 | BIN+= ${script:T:.${ext}=} | |
122 | CLEANFILES+= ${script:T:.${ext}=} | |
123 | .if defined(_SCRIPT_SED) | |
124 | ${script:T:.${ext}=}: ${script} | |
125 | ${SED} ${_SCRIPT_SED} < ${.ALLSRC} > ${.TARGET}.output | |
126 | ${MV} ${.TARGET}.output ${.TARGET} | |
127 | .else | |
128 | ${script:T:.${ext}=}: ${script} | |
129 | ${CP} ${.ALLSRC} ${.TARGET} | |
130 | .endif | |
131 | .endfor | |
132 | .endfor | |
133 | ||
134 | ||
135 | # | |
136 | # Script libraries | |
137 | # | |
138 | ||
139 | SCRIPTLIBMODE?= ${SHAREMODE} | |
140 | SCRIPTLIBDIR?= ${SHAREDIR} | |
141 | SCRIPTLIBOWN?= ${SHAREOWN} | |
142 | SCRIPTLIBGRP?= ${SHAREGRP} | |
143 | ||
144 | FILESGROUPS+= SCRIPTLIB | |
145 | ||
146 | ||
147 | .include "bps.clean.mk" | |
148 | .include "bps.files.mk" | |
149 | .include "bps.usertarget.mk" | |
150 | ||
151 | .endif #!target(__<misc.script.mk>__) | |
152 | ||
153 | ### End of file `misc.script.mk' |
0 | ### Makefile -- Install script programs and libraries | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Thu Nov 20 14:11:44 CET 2014 | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | FILES= script.shell.mk | |
17 | ||
18 | .include "project.mk" | |
19 | ||
20 | ### End of file `Makefile' |
0 | ### script.shell.mk -- Development of shell scripts | |
1 | ||
2 | # Author: Michael Grünewald | |
3 | # Date: Fri 10 Feb 2006 10:40:49 GMT | |
4 | ||
5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) | |
6 | # This file is part of BSD Owl Scripts | |
7 | # | |
8 | # Copyright © 2005–2014 Michael Grünewald | |
9 | # | |
10 | # This file must be used under the terms of the CeCILL-B. | |
11 | # This source file is licensed as described in the file COPYING, which | |
12 | # you should have received as part of this distribution. The terms | |
13 | # are also available at | |
14 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt | |
15 | ||
16 | ||
17 | ### SYNOPSIS | |
18 | ||
19 | # SCRIPT = mp2eps.sh | |
20 | # SCRIPT+= mp2pdf.sh | |
21 | # SCRIPT+= mp2png.sh | |
22 | # | |
23 | # SCRIPTLIB+= mp2pnglib.sh | |
24 | # | |
25 | # | |
26 | # TMPDIR = /var/run/tmp | |
27 | # | |
28 | # REPLACE = PREFIX TMPDIR | |
29 | # | |
30 | # .include "script.shell.mk" | |
31 | ||
32 | ||
33 | ### DESCRIPTION | |
34 | ||
35 | # This modules handles the configuration and installation of | |
36 | # scripts. The target language is the Bourne shell but other | |
37 | # scripting languages are supported as well. | |
38 | ||
39 | ||
40 | # Scripts and Libraries: | |
41 | # | |
42 | # We consider two groups of files: script programs (SCRIPT) and script | |
43 | # libraries (SCRIPTLIB). | |
44 | ||
45 | ||
46 | # Configuration: | |
47 | # | |
48 | # We support configuration of scripts by allowing replacement | |
49 | # of some fixed strings in the file. This completes the similar | |
50 | # feature of `autoconf`. This replacement is only performed in | |
51 | # script programs and not in script libraries. | |
52 | ||
53 | ||
54 | # Variables: | |
55 | # | |
56 | # SCRIPT | |
57 | # List of script programs to install | |
58 | # | |
59 | # The variables BINDIR, BINMODE, BINOWN and BINGRP | |
60 | # parametrise the installation. | |
61 | # | |
62 | # | |
63 | # SCRIPTLIB | |
64 | # List of script libraries to install | |
65 | # | |
66 | # The variables SCRIPTLIBDIR, SCRIPTLIBMODE, SCRIPTLIBOWN and | |
67 | # SCRIPTLIBGRP parametrise the installation. | |
68 | # | |
69 | # The SCRIPTLIBDIR variable defaults to | |
70 | # `${SHAREDIR}${PACKAGEDIR}` but other sensible locations could | |
71 | # be `${LIBDIR}/perl5/5.12.4/${PACKAGEDIR}`. | |
72 | # | |
73 | # | |
74 | # PACKAGE | |
75 | # Name of the application | |
76 | # | |
77 | # It must be a UNIX filename and can be defined to let script | |
78 | # libraries be installed in an application specific subdirectory. | |
79 | # | |
80 | # | |
81 | # REPLACE | |
82 | # List of variables to be replaced in the configuration step | |
83 | # | |
84 | # The declaration `REPLACE=PREFIX` arranges so that the sequence | |
85 | # `@prefix@` is replaced by the value of `PREFIX` known to `make`. | |
86 | # | |
87 | # The case conversion should help to follow the different | |
88 | # conventions used when writing makefiles and using autoconf. | |
89 | # | |
90 | # The pipe character `|` must not appear in replacement text of the | |
91 | # variables enumerated by REPLACE. | |
92 | ||
93 | ||
94 | ### IMPLEMENTATION | |
95 | ||
96 | .if !target(__<script.shell.mk>__) | |
97 | __<script.shell.mk>__: | |
98 | ||
99 | .include "bps.init.mk" | |
100 | ||
101 | ||
102 | # | |
103 | # Replacement of variables | |
104 | # | |
105 | ||
106 | .if defined(REPLACE)&&!empty(REPLACE) | |
107 | .for var in ${REPLACE} | |
108 | _SCRIPT_SED+= -e 's|@${var:L}@|${${var:S/|/\|/g}}|g' | |
109 | .endfor | |
110 | .endif | |
111 | ||
112 | ||
113 | # | |
114 | # Script programs | |
115 | # | |
116 | ||
117 | _SCRIPT_EXTS?= pl sh bash py sed awk | |
118 | ||
119 | .for ext in ${_SCRIPT_EXTS} | |
120 | .for script in ${SCRIPT:M*.${ext}} | |
121 | BIN+= ${script:T:.${ext}=} | |
122 | CLEANFILES+= ${script:T:.${ext}=} | |
123 | .if defined(_SCRIPT_SED) | |
124 | ${script:T:.${ext}=}: ${script} | |
125 | ${SED} ${_SCRIPT_SED} < ${.ALLSRC} > ${.TARGET}.output | |
126 | ${MV} ${.TARGET}.output ${.TARGET} | |
127 | .else | |
128 | ${script:T:.${ext}=}: ${script} | |
129 | ${CP} ${.ALLSRC} ${.TARGET} | |
130 | .endif | |
131 | .endfor | |
132 | .endfor | |
133 | ||
134 | ||
135 | # | |
136 | # Script libraries | |
137 | # | |
138 | ||
139 | SCRIPTLIBMODE?= ${SHAREMODE} | |
140 | SCRIPTLIBDIR?= ${SHAREDIR} | |
141 | SCRIPTLIBOWN?= ${SHAREOWN} | |
142 | SCRIPTLIBGRP?= ${SHAREGRP} | |
143 | ||
144 | FILESGROUPS+= SCRIPTLIB | |
145 | ||
146 | ||
147 | .include "bps.clean.mk" | |
148 | .include "bps.files.mk" | |
149 | .include "bps.usertarget.mk" | |
150 | ||
151 | .endif #!target(__<script.shell.mk>__) | |
152 | ||
153 | ### End of file `script.shell.mk' |