summaryrefslogtreecommitdiffstats
path: root/config/pkgs.mk
blob: 5ebbaecdf3232a98abce89b93a479870b4111d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD

# Makefile that generates gen/pkgs.mk

include config/prelude.mk
include ${GEN}/vars.mk
include ${GEN}/flags.mk
include ${GEN}/pkgs.mk
include config/exports.mk

${GEN}/pkgs.mk::
	${MSG} "[ GEN] $@"
	config/pkgconf.sh --cflags ${PKGS} >>$@ 2>>$@.log
	config/pkgconf.sh --ldflags ${PKGS} >>$@ 2>>$@.log
	config/pkgconf.sh --ldlibs ${PKGS} >>$@ 2>>$@.log
	${VCAT} $@