Skip to content

Commit

Permalink
improve integration of pkgconfig generation
Browse files Browse the repository at this point in the history
Bug: linux-sunxi#8
Signed-off-by: Yann Dirson <ydirson@o-computers.com>
  • Loading branch information
Yann Dirson committed Jan 25, 2016
1 parent 95bbd40 commit 7f60efc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
18 changes: 14 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
include Makefile.setup
include config.mk

.PHONY : test

all: config.mk
pkgconfigs = egl.pc gles_cm.pc glesv2.pc

all: config.mk $(pkgconfigs)
$(MAKE) -C include
$(MAKE) -C lib

Expand All @@ -16,12 +21,17 @@ clean:
$(MAKE) -C test clean
$(MAKE) -C lib clean
$(MAKE) -C include clean
rm -f config.mk
rm -f config.mk $(pkgconfigs)

install: config.mk
install: all config.mk
$(MAKE) -C lib install
$(MAKE) -C include install
$(MAKE) -f Makefile.pc
$(MKDIR) $(libdir)/pkgconfig
$(INSTALL_DATA) $(pkgconfigs) $(libdir)/pkgconfig

test: config.mk
$(MAKE) -C test test

%.pc: %.pc.in
echo "prefix=$(prefix)" > $@
sed -i "s/MVERSION/${MALI_VERSION}/g" $^ >> $@
21 changes: 0 additions & 21 deletions Makefile.pc

This file was deleted.

0 comments on commit 7f60efc

Please sign in to comment.