Skip to content

Commit 258924f

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 258924f

2 files changed

Lines changed: 10 additions & 25 deletions

File tree

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.PHONY : test
22

3-
all: config.mk
3+
pkgconfigs = egl.pc gles_cm.pc glesv2.pc
4+
5+
all: config.mk $(pkgconfigs)
46
$(MAKE) -C include
57
$(MAKE) -C lib
68

@@ -16,12 +18,16 @@ clean:
1618
$(MAKE) -C test clean
1719
$(MAKE) -C lib clean
1820
$(MAKE) -C include clean
19-
rm -f config.mk
21+
rm -f config.mk $(pkgconfigs)
2022

21-
install: config.mk
23+
install: all config.mk
2224
$(MAKE) -C lib install
2325
$(MAKE) -C include install
24-
$(MAKE) -f Makefile.pc
26+
$(INSTALL_DATA) $(pkgconfigs) $(libdir)/pkgconfig
2527

2628
test: config.mk
2729
$(MAKE) -C test test
30+
31+
%.pc: %.pc.in
32+
echo "prefix=$(prefix)" > $@
33+
sed -i "s/MVERSION/${MALI_VERSION}/g" $^ >> $@

Makefile.pc

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

0 commit comments

Comments
 (0)