Skip to content

Commit 7f60efc

Browse files
author
Yann Dirson
committed
improve integration of pkgconfig generation
Bug: linux-sunxi#8 Signed-off-by: Yann Dirson <ydirson@o-computers.com>
1 parent 95bbd40 commit 7f60efc

2 files changed

Lines changed: 14 additions & 25 deletions

File tree

Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
include Makefile.setup
2+
include config.mk
3+
14
.PHONY : test
25

3-
all: config.mk
6+
pkgconfigs = egl.pc gles_cm.pc glesv2.pc
7+
8+
all: config.mk $(pkgconfigs)
49
$(MAKE) -C include
510
$(MAKE) -C lib
611

@@ -16,12 +21,17 @@ clean:
1621
$(MAKE) -C test clean
1722
$(MAKE) -C lib clean
1823
$(MAKE) -C include clean
19-
rm -f config.mk
24+
rm -f config.mk $(pkgconfigs)
2025

21-
install: config.mk
26+
install: all config.mk
2227
$(MAKE) -C lib install
2328
$(MAKE) -C include install
24-
$(MAKE) -f Makefile.pc
29+
$(MKDIR) $(libdir)/pkgconfig
30+
$(INSTALL_DATA) $(pkgconfigs) $(libdir)/pkgconfig
2531

2632
test: config.mk
2733
$(MAKE) -C test test
34+
35+
%.pc: %.pc.in
36+
echo "prefix=$(prefix)" > $@
37+
sed -i "s/MVERSION/${MALI_VERSION}/g" $^ >> $@

Makefile.pc

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)