summaryrefslogtreecommitdiffstats
path: root/config/pkgs.mk
blob: de9e16e1c4ef5c29ec682b1c161d114e651a7ac5 (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] ${TGT}"
	config/pkgconf.sh --cflags ${PKGS} >>$@ 2>>$@.log
	config/pkgconf.sh --ldflags ${PKGS} >>$@ 2>>$@.log
	config/pkgconf.sh --ldlibs ${PKGS} >>$@ 2>>$@.log
	${VCAT} $@