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 <[email protected]>
  • Loading branch information
Yann Dirson committed Jan 25, 2016
1 parent 95bbd40 commit 3947ff5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
17 changes: 13 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,16 @@ 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
$(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 3947ff5

Please sign in to comment.