Makefile: Use single-colon rules for `all'.
[profile] / Makefile
CommitLineData
67b1a15a
MW
1## -*-makefile-*-
2
807c317e 3all:
5e776d3c
MW
4.PHONY: all
5
6clean::
7.PHONY: clean
8
67b1a15a
MW
9.SECONDEXPANSION: #sorry
10
11###--------------------------------------------------------------------------
12### Utilities.
13
14##
15quote = '$(subst ','\'',$1)'#'
16
17## Suss out how to print stuff.
18print = printf "%s" $(call quote,$1)
19
20## Looking configuration things up.
21mdw-conf = $(shell bin/mdw-conf "$1" "$2")
22
23## Checking symlink targets.
24symlink-ok-p = $(shell \
25 case $$(readlink 2>/dev/null $1) in ($2) echo t ;; esac)
26
27## Silent rules machinery.
28V = 0
67b1a15a
MW
29V_AT = $(V_AT_$V)
30V_AT_0 = @
2e0a8012 31v_print = $(call v_print_$V,$1,$2)
a811ce27
MW
32v_print_0 = \
33 printf " %-8s %s\n" "$1" $(call quote,$(patsubst $(HOME)/%,~/%,$2));
2e0a8012 34v_tag = $(V_AT)$(call v_print_$V,$1,$@)
67b1a15a
MW
35
36## Hack.
37relax =
38
39###--------------------------------------------------------------------------
40### Configuration.
41
42## Figure out where I am.
3337f511 43HERE := $(shell pwd)
67b1a15a
MW
44
45## Decide on how to fetch things from URLs.
46ifeq ($(shell (curl >/dev/null 2>&1 --version || [ $$? -eq 2 ]) && echo t),t)
47 get-url = curl -fs -o $1 $2
48else
49 get-url = wget -q -O $1 $2
50endif
51
52## Which Emacs should I use?
53EMACS := $(shell \
54 emacs=nil; \
55 for i in emacs24 emacs23 emacs22 emacs21 emacs; do \
3337f511
MW
56 if type >/dev/null 2>&1 $$i; then emacs=$$i; break; fi; \
57 done; \
58 echo $$emacs)
67b1a15a
MW
59
60## Whence to obtain externally hosted stuff.
61REPO = https://ftp.distorted.org.uk/u/mdw/profile
62
63## Additional local configuration.
64-include local.mk
65
66###--------------------------------------------------------------------------
67### Some utility rules.
68
69_force:
70.PHONY: _force
71
72###--------------------------------------------------------------------------
73### Emacs.
74
967148ff
MW
75ifneq ($(EMACS),nil)
76
67b1a15a
MW
77EMACSLIB = $(HOME)/lib/emacs
78
486623cb 79EMACS_VERSION := $(shell $(EMACS) 2>&1 -Q --batch --eval \
b2f6f110
MW
80 '(message "%s %s" emacs-major-version emacs-minor-version)' | \
81 tail -n1)
486623cb
MW
82emacs-version-p = $(shell set -- $(EMACS_VERSION); \
83 if [ $$1 -gt $1 ] || ([ $$1 -eq $1 ] && [ $$2 -ge $2 ]); then \
84 echo t; \
85 fi)
86
6369ae29
MW
87ELISP += make-regexp ew-hols
88ELISP += mdw-gnus-patch
89ELISP += mdw-multiple-cursors
90ELISP += git git-blame vc-git stgit quilt
486623cb
MW
91
92ifeq ($(call emacs-version-p,24,3),t)
6369ae29 93ELISP += bracketed-paste
486623cb 94endif
67b1a15a 95
3e441da6
MW
96ELISP += dot-emacs
97dot-emacs_DEPS = make-regexp
98
67b1a15a 99SCRIPTLINKS += emacsclient-hack movemail-hack sendmail-hack
cef9886f 100SCRIPTLINKS += aspell-hack emerge-hack wakey.sh
67b1a15a 101
3e441da6 102%.elc: %.el $$(foreach e, $$($$*_DEPS), $$(DEP_$$e))
83198952
MW
103 $(call v_tag,EMACS)if ! $(EMACS) >$*.build-log 2>&1 \
104 -L el/ -L $(EMACSLIB) \
67b1a15a 105 --batch --no-site-file \
83198952
MW
106 --eval '(byte-compile-file "$<")'; then \
107 cat $*.build-log; exit 2; \
108 fi
67b1a15a 109
6369ae29
MW
110LOCAL_ELISP = $(filter $(notdir $(wildcard el/*.el)), \
111 $(addsuffix .el, $(ELISP)))
112$(foreach e, $(LOCAL_ELISP), \
113 $(eval DEP_$(basename $e) = $(EMACSLIB)/$(e:.el=.elc)))
67b1a15a
MW
114$(addprefix $(EMACSLIB)/, $(LOCAL_ELISP)): $(EMACSLIB)/%: el/%
115 $(call v_tag,SYMINK)mkdir -p $(EMACSLIB) && \
116 rm -f $@.new && \
117 ln -s $(HERE)/$< $@.new && \
118 mv $@.new $@
119
120REMOTE_ELISP = $(filter-out $(notdir $(wildcard el/*.el)), \
6369ae29 121 $(addsuffix .el, $(ELISP)))
67b1a15a 122$(foreach e, $(REMOTE_ELISP), \
6369ae29 123 $(eval DEP_$(basename $e) = $(if $(shell \
67b1a15a
MW
124 if $(EMACS) >/dev/null 2>&1 --no-site-file -q --batch \
125 --eval ' \
126 (progn \
127 (kill-emacs (condition-case nil \
128 (progn (load-library "$e") 0) \
129 (error 1))))'; then \
130 echo t; \
131 fi),, $(EMACSLIB)/$(e:.el=.elc))))
132$(addprefix $(EMACSLIB)/, $(REMOTE_ELISP)): $(EMACSLIB)/%:
133 $(call v_tag,FETCH)mkdir -p $(EMACSLIB) && \
134 $(call get-url,$@.new,$(REPO)/$*) && \
135 mv $@.new $@
136
137DOTLINKS += .emacs .emacs-calc .vm .gnus.el .ercrc.el
138
807c317e 139all: $(foreach e, $(ELISP), $(DEP_$e))
6369ae29 140$(foreach e, $(ELISP), $(eval _emacs.$e: $(EMACSLIB)/$e.elc))
67b1a15a 141
967148ff
MW
142endif
143
67b1a15a
MW
144###--------------------------------------------------------------------------
145### Other simpler things.
146
147$(HOME)/.mdw.conf:
148 $(call v_tag,COPY)cp mdw.conf $@.new && mv $@.new $@
149
150## Utility packages.
151PACKAGES += mlib checkpath
152mlib_CHECK = crc-mktab
153checkpath_CHECK = tmpdir
154checkpath_DEPS = mlib
155
156## Packaging machinery.
157SCRIPTLINKS += mdw-build mdw-sbuild mdw-sbuild-server
158SCRIPTLINKS += update-buildable-branch
f0637893
MW
159DOTLINKS += .config/mdw-build.conf
160.config/mdw-build.conf_SRC = mdw-build.conf
67b1a15a
MW
161
162## Shells.
163DOTLINKS += .profile .shell-rc .shell-logout
a3857ab2 164DOTLINKS += .shrc
9ba9bb2f
MW
165DOTLINKS += .zprofile .zshrc .zlogout .zshenv
166DOTLINKS += .bash_profile .bash_completion .bash_logout
167DOTLINKS += .bashrc .inputrc
67b1a15a
MW
168.bash_profile_SRC = bash-profile
169.bash_completion_SRC = bash-completion
9ba9bb2f
MW
170.bash_logout_SRC = shell-logout
171.zlogout_SRC = shell-logout
67b1a15a 172
807c317e
MW
173all: zap-stale-zcompdump
174zap-stale-zcompdump:
72123a3a
MW
175 $(V_AT)if [ $(HOME)/.zcompdump -ot dot/zshrc ]; then \
176 $(call v_print,ZAP,$(HOME)/.zcompdump)rm -f $(HOME)/.zcompdump; \
177 fi
807c317e 178.PHONY: zap-stale-zcompdump
72123a3a 179
a3857ab2
MW
180## The Plan 9 `rc' shell. This needs special hacking, because the Linux port
181## and Plan 9 From User Space have incompatible syntax.
182DOTLINKS += lib/profile
183lib/profile_SRC = rcrc
807c317e 184all: $(HOME)/.rcrc
a3857ab2
MW
185$(HOME)/.rcrc: dot/rcrc
186 $(call v_tag,SED)sed 's/; if not/else/' $< >$@.new && mv $@.new $@
187
67b1a15a
MW
188## Git.
189DOTSUBST += .gitconfig
2e15741e 190SCRIPTLINKS += git-copyright-dates
67b1a15a
MW
191DOTLINKS += .cgrc .tigrc
192.gitconfig_SUBSTS = \
9ca6d190
MW
193 $(call substvar,releasekey,$(call mdw-conf,releasekey,481334C2)) \
194 $(call substvar,email,$(call mdw-conf,email,mdw@distorted.org.uk))
67b1a15a
MW
195$(HOME)/.gitconfig: $(HOME)/.mdw.conf
196
197## PulseAudio.
198DOTLINKS += .pulse/daemon.conf
199DOTSUBST += .pulse/default.pa
200.pulse/daemon.conf_SRC = pulse-daemon.conf
201.pulse/default.pa_SRC = pulse-default.pa.in
202
203## Other editors.
204DOTLINKS += .vimrc .mg .zile
205
206## Mail.
207DOTLINKS += .mailrc .signature .muttrc
208
209## Lisp.
6a8c8070
MW
210DOTLINKS += .cmucl-init.lisp .sbclrc .clisprc.lisp
211DOTLINKS += .eclrc .ccl-init.lisp .abclrc
67b1a15a
MW
212.cmucl-init.lisp_SRC = lisp-init.lisp
213.sbclrc_SRC = lisp-init.lisp
214.clisprc.lisp_SRC = lisp-init.lisp
215.eclrc_SRC = lisp-init.lisp
6a8c8070
MW
216.ccl-init.lisp_SRC = lisp-init.lisp
217.abclrc_SRC = lisp-init.lisp
67b1a15a
MW
218DOTLINKS += .swank.lisp
219
220## IPython.
221DOTLINKS += .ipython/profile_default/ipython_config.py
222DOTLINKS += .ipython/profile_default/startup/50-key-bindings.py
223.ipython/profile_default/ipython_config.py_SRC = ipython-config.py
224.ipython/profile_default/startup/50-key-bindings.py_SRC = ipython-key-bindings.py
225
226## Other languages.
227DOTLINKS += .guile
228DOTLINKS += .tclshrc .wishrc
229.tclshrc_SRC = tclshrc
230.wishrc_SRC = tclshrc
231
232## Random scripts.
233SCRIPTLINKS += mdw-editor mdw-pager
234SCRIPTLINKS += mdw-conf
235SCRIPTLINKS += svnwrap
236SCRIPTLINKS += guest-console
237SCRIPTLINKS += hyperspec
310d0527 238SCRIPTLINKS += bdl
878a38bd 239SCRIPTLINKS += datasyms
8945a62f 240SCRIPTLINKS += fixsub
01a5d0a6 241SCRIPTLINKS += check-debsyms
a98bca79 242SCRIPTLINKS += check-blkdev-size
a10bf242
MW
243SCRIPTLINKS += xremote
244SCRIPTLINKS += remote-disorder
245SCRIPTLINKS += remote-slideshow
67b1a15a
MW
246
247## Random odds and ends.
3f7369a9 248DOTLINKS += .infokey .sqliterc
67b1a15a
MW
249DOTLINKS += .gdbinit .toprc .aspell.conf
250DOTLINKS += .dircolors .colordiffrc .screenrc .tmux.conf
251DOTLINKS += .cvsrc .indent.pro .ditz-config
da526ba7
MW
252DOTLINKS += .lftp/rc
253.lftp/rc_SRC = lftp-rc
dd794b20
MW
254DOTLINKS += .a2ps/a2psrc
255.a2ps/a2psrc_SRC = a2psrc
67b1a15a
MW
256DOTSUBST += .mykermrc
257SCRIPTLINKS += lesspipe.sh
258
259SCRIPTLINKS += run-with-shell-env
260SCRIPTLINKS += start-ssh-agent start-ssh-pageant
261SCRIPTLINKS += add-ssh-keys
262SCRIPTLINKS += hacks/ssh/ssh
263hacks/ssh/ssh_SRC = hacks/ssh
264
265DOTLINKS += .w3m/config .elinks/elinks.conf
266.w3m/config_SRC = w3m-config
267.elinks/elinks.conf_SRC = elinks.conf
268
269DOTLINKS += .mc/ini .mc/panels.ini
270.mc/ini_SRC = mc-ini
271.mc/panels.ini_SRC = mc-panels.ini
272
e8f132bd 273DOTLINKS += .parallel/config .parallel/sshloginfile
67b1a15a 274.parallel/config_SRC = parallel-config
e8f132bd 275.parallel/sshloginfile_SRC = parallel-hosts
67b1a15a 276
807c317e 277all: $(HOME)/.less
3f7369a9
MW
278$(HOME)/.less: dot/lesskey
279 $(V_AT)rm -f $(HOME)/.lesskey
280 $(call v_tag,LESSKEY)lesskey -o$@ $<
281
67b1a15a
MW
282###--------------------------------------------------------------------------
283### X11 configuration.
284
285ifeq ($X,t)
286
287PACKAGES += xtoys
288xtoys_CHECK = xatom
289xtoys_DEPS = mlib
290
291DOTLINKS += .xinitrc .xsession .xmodmap .vncrc .vncsession
df4bcc77
MW
292DOTLINKS += .config/fontconfig/fonts.conf
293.config/fontconfig/fonts.conf_SRC = fonts.conf
67b1a15a
MW
294DOTLINKS += .stalonetrayrc
295
67b1a15a
MW
296DOTLINKS += .config/gnome-session/sessions/mdw.session
297.config/gnome-session/sessions/mdw.session_SRC = mdw.session
298
299DOTLINKS += .Eterm/themes/Eterm/theme.cfg
300DOTLINKS += .enlightenment/keybindings.cfg
301DOTLINKS += .enlightenment-vnc/keybindings.cfg
302DOTLINKS += .e16/bindings.cfg
303.Eterm/themes/Eterm/theme.cfg_SRC = eterm-theme.cfg
304.enlightenment/keybindings.cfg_SRC = e-keybindings.cfg
305.enlightenment-vnc/keybindings.cfg_SRC = evnc-keybindings.cfg
306.e16/bindings.cfg_SRC = e16-bindings
307
308DOTLINKS += .gtkrc-2.0
309DOTLINKS += .config/gtk-3.0/gtk.css
310DOTLINKS += .config/gtk-3.0/settings.ini
311.config/gtk-3.0/gtk.css_SRC = gtk3.css
312.config/gtk-3.0/settings.ini_SRC = gtk3-settings.ini
313
a9d5edbf
MW
314DOTLINKS += .config/user-dirs.dirs .config/user-dirs.locale
315.config/user-dirs.dirs_SRC = user-dirs.dirs
316.config/user-dirs.locale_SRC = user-dirs.locale
317
67b1a15a
MW
318SCRIPTLINKS += xinitcmd lock-screen xshutdown
319SCRIPTLINKS += un-backslashify-selection
320SCRIPTLINKS += xpra-start-xdummy
5f9b345a 321SCRIPTLINKS += play-rawk
75a2ccd4 322SCRIPTLINKS += x2x-privsep
b3ee0533 323SCRIPTLINKS += xduplic-terminal
67b1a15a
MW
324
325DOTCPP += .Xdefaults
326Xdefaults_DEFS = -DEMACSWD=$(call mdw-conf,emacs-width,77)
57a9b0cd 327$(HOME)/.Xdefaults: $(HOME)/.mdw.conf dot/Xdefaults.pterm
67b1a15a 328
ddc97f65
MW
329ifeq ($(shell case $${DISPLAY-nil} in (:[0-9]*) echo t ;; (*) echo nil ;; esac),t)
330dotfile-hook/.Xdefaults = \
8baf0354 331 $(call v_tag,XRDB)xrdb -load $<
ddc97f65
MW
332endif
333
67b1a15a
MW
334endif
335
336###--------------------------------------------------------------------------
53ad55a5
MW
337### Firefox things.
338
339ifeq ($(FIREFOX),t)
340
341out/:
342 $(call v_tag,MKDIR)mkdir $@
343
344out/firefox/: | out/
345 $(call v_tag,MKDIR)mkdir $@
346
347clean::; rm -rf out/
348
807c317e 349all: out/firefox/smartup-gestures.config
53ad55a5
MW
350out/firefox/smartup-gestures.config: firefox/smartup-gestures.json | out/firefox/
351 $(call v_tag,BLOB)\
352 jq -c . $< | bincode base64 >$@.new && mv $@.new $@
353
807c317e 354all: out/firefox/stylus.json
53ad55a5
MW
355out/firefox/stylus.json: firefox/stylus/ firefox/stylus/*.css | out/firefox/
356 $(call v_tag,IMPLODE)\
357 firefox/implode-stylus firefox/stylus/ >$@.new && \
358 mv $@.new $@
359endif
360
361###--------------------------------------------------------------------------
9c72b1b3
MW
362### General symlinking.
363
364misclink-source = $(HERE)/$(or $($1_SRC), $1)
365
807c317e 366all: $(addprefix $(HOME)/, $(MISCLINKS))
9c72b1b3
MW
367misclink-ok-p = \
368 $(call symlink-ok-p,$(HOME)/$1,$(call misclink-source,$1))
369$(addprefix $(HOME)/, $(subst %,\%,$(MISCLINKS))): $(HOME)/%: \
370 $$(if $$(call misclink-ok-p,$$*),,_force)
371 $(call v_tag,SYMLINK)mkdir -p $(dir $@) && \
372 rm -f $@.new && \
373 ln -s $(call misclink-source,$*) $@.new && \
374 mv $@.new $@
375 $(symlink-hook/$*)
376
377###--------------------------------------------------------------------------
67b1a15a
MW
378### Processing dotfiles.
379
380dotfile-source = $(HERE)/dot/$(or $($1_SRC), $(1:.%=%)$2)
381
4937ba2d 382## Easiest: just make symlinks.
67b1a15a
MW
383dotlink-ok-p = \
384 $(call symlink-ok-p,$(HOME)/$1,$(call dotfile-source,$1))
807c317e 385all: $(addprefix $(HOME)/, $(DOTLINKS))
67b1a15a
MW
386$(addprefix $(HOME)/, $(subst %,\%,$(DOTLINKS))): $(HOME)/%: \
387 $$(if $$(call dotlink-ok-p,$$*),,_force)
388 $(call v_tag,SYMLINK)mkdir -p $(dir $@) && \
389 rm -f $@.new && \
390 ln -s $(call dotfile-source,$*) $@.new && \
391 mv $@.new $@
f6c3a80b 392 $(dotfile-hook/$*)
67b1a15a
MW
393
394## Hack with the C preprocessor.
807c317e 395all: $(addprefix $(HOME)/, $(DOTCPP))
67b1a15a
MW
396$(addprefix $(HOME)/, $(subst %,\%,$(DOTCPP))): $(HOME)/%: \
397 $$(call dotfile-source,$$*) Makefile
398 $(call v_tag,CPP)mkdir -p $(dir $@) && \
399 rm -f $@.new && \
400 cpp -P -o$@.new $($*_DEFS) $< && \
401 mv $@.new $@
f6c3a80b 402 $(dotfile-hook/$*)
67b1a15a
MW
403
404## Hack by making simple substitutions.
405substvar = -e $(call quote,s\a@$1@\a$2\ag)
406SUBSTS += $(call substvar,home,$(HOME))
407SUBSTS += $(call substvar,profile,$(HERE))
807c317e 408all: $(addprefix $(HOME)/, $(DOTSUBST))
67b1a15a 409$(addprefix $(HOME)/, $(subst %,\%,$(DOTSUBST))): $(HOME)/%: \
33271a96 410 $$(call dotfile-source,$$*,.in) Makefile
67b1a15a
MW
411 $(call v_tag,SUBST)mkdir -p $(dir $@) && \
412 rm -f $@.new && \
413 sed -e "1i\
414$(relax)### generated by $(HERE)/Makefile; do not edit!" \
415 $(SUBSTS) $($*_SUBSTS) \
416 $(call dotfile-source,$*,.in) >$@.new && \
417 mv $@.new $@
f6c3a80b 418 $(dotfile-hook/$*)
67b1a15a
MW
419
420###--------------------------------------------------------------------------
421### Processing script links.
422
423script-source = $(HERE)/bin/$(or $($1_SRC), $1)
0cd3b798
MW
424
425ifeq ($(prefix-shebang-p),t)
807c317e 426all: $(addprefix $(HOME)/bin/, $(SCRIPTLINKS))
0cd3b798
MW
427$(addprefix $(HOME)/bin/, $(SCRIPTLINKS)): $(HOME)/bin/%: \
428 $$(call script-source,$$*) Makefile
429 $(call v_tag,SHEBANG)mkdir -p $(dir $@) && \
430 rm -f $@.new && \
431 sed "1s\a\(#! *\)/\a\1$(SHEBANG_PREFIX)/\a" \
432 $(call script-source,$*) >$@.new && \
433 chmod --reference=$(call script-source,$*) $@.new && \
434 mv $@.new $@
435 $(script-hook/$*)
436else
67b1a15a
MW
437scriptlink-ok-p = \
438 $(call symlink-ok-p,$(HOME)/bin/$1,$(call script-source,$1))
807c317e 439all: $(addprefix $(HOME)/bin/, $(SCRIPTLINKS))
67b1a15a
MW
440$(addprefix $(HOME)/bin/, $(SCRIPTLINKS)): $(HOME)/bin/%: \
441 $$(if $$(call scriptlink-ok-p,$$*),,_force)
442 $(call v_tag,SYMLINK)mkdir -p $(dir $@) && \
443 rm -f $@.new && \
444 ln -s $(call script-source,$*) $@.new && \
445 mv $@.new $@
f6c3a80b 446 $(script-hook/$*)
0cd3b798 447endif
67b1a15a 448
807c317e 449all: $(addprefix $(HOME)/bin/, $(SCRIPTLINKS))
67b1a15a
MW
450
451###--------------------------------------------------------------------------
452### Building packages from source tarballs.
453
454SRCDIR = $(HOME)/src/profile
455
456pkg-builddir = $(SRCDIR)/$1/build
457pkg-stamp = $(call pkg-builddir,$1)/$2-stamp
458
459$(foreach p, $(PACKAGES), $(eval DEP_$p = $(if $(shell \
460 if $($p_CHECK) >/dev/null 2>&1 --version; then echo t; fi),, \
461 $(call pkg-stamp,$p,install))))
462
463$(PACKAGES:%=$(SRCDIR)/%.tar.gz): $(SRCDIR)/%.tar.gz:
464 $(call v_tag,FETCH)mkdir -p $(SRCDIR) && \
465 rm -f $@.new && \
466 $(call get-url,$@.new,$(REPO)/$*.tar.gz) && \
467 mv $@.new $@
468
469$(foreach p, $(PACKAGES), $(call pkg-stamp,$p,unpack)): \
470 $(call pkg-stamp,%,unpack): $(SRCDIR)/%.tar.gz
471 $(call v_tag,EXTRACT)rm -rf $(SRCDIR)/$* && \
472 mkdir $(SRCDIR)/$*.tmp-unpack && \
473 cd $(SRCDIR)/$*.tmp-unpack && \
474 gzip -cd ../$*.tar.gz | tar xf - && \
475 mv * ../$* && \
476 cd .. && \
477 rmdir $*.tmp-unpack && \
478 mkdir $*/build && \
479 touch $*/build/unpack-stamp
480
481$(foreach p, $(PACKAGES), $(call pkg-stamp,$p,configure)): \
482 $(call pkg-stamp,%,configure): \
483 $(call pkg-stamp,%,unpack) \
484 $$(foreach p, $$($$*_DEPS), $$(DEP_$$p))
485 $(call v_tag,CONFIG)cd $(dir $@) && \
486 ../configure --prefix=$(HOME) \
487 PKG_CONFIG_PATH=$(HOME)/lib/pkgconfig \
488 $($*_CONFIG) >>buildlog 2>&1 && \
489 touch configure-stamp
490
491$(foreach p, $(PACKAGES), $(call pkg-stamp,$p,build)): \
492 $(call pkg-stamp,%,build): \
493 $(call pkg-stamp,%,configure)
494 $(call v_tag,BUILD)cd $(dir $@) && \
495 $(MAKE) $($*_MAKEFLAGS) >>buildlog 2>&1 && \
496 touch build-stamp
497
498$(foreach p, $(PACKAGES), $(call pkg-stamp,$p,install)): \
499 $(call pkg-stamp,%,install): \
500 $(call pkg-stamp,%,build)
501 $(call v_tag,INSTALL)cd $(dir $@) && \
502 $(MAKE) $($*_MAKEFLAGS) install >>buildlog 2>&1 && \
503 touch install-stamp
f6c3a80b 504 $(package-hook/$*)
67b1a15a 505
807c317e 506all: $(foreach p, $(PACKAGES), $(DEP_$p))
67b1a15a
MW
507$(foreach p, $(PACKAGES), $(eval _pkg.$p: $(call pkg-stamp,$p,install)))
508
509###----- That's all, folks --------------------------------------------------