fixed prefix in pkgconfig for Debian

This commit is contained in:
Patrik Modesto 2018-03-20 16:58:09 +01:00
parent 9af0440556
commit 6a044b2cac
3 changed files with 9 additions and 3 deletions

View File

@ -181,6 +181,7 @@ clean: $(MODEST_BUILD_MODULES_TARGET_CLEAN)
rm -f $(call MODEST_LIBRARY_WITH_VERSION) && rm -f $(call MODEST_LIBRARY_STATIC)
rm -rf $(TEST_DIR_BASE)
$(call MODEST_BUILD_CLEAN_AFTER)
rm $(MODEST_PKG_CONFIG_FILE)
for f in $(BUILD_SUB_DIRS); do $(MAKE) -C $$f clean; done
clone: clean_api $(MODEST_BUILD_MODULES_TARGET_CLONE)
@ -203,7 +204,9 @@ uninstall:
test: library
$(MAKE) -C $(TEST_DIR) run
make-pc-file:
make-pc-file: $(MODEST_PKG_CONFIG_FILE)
$(MODEST_PKG_CONFIG_FILE): $(MODEST_PKG_CONFIG_FILE).in
$(call MODEST_PKG_CONFIG_PROCESS,$(MODEST_PKG_CONFIG_FILE).in, $(MODEST_PKG_CONFIG_FILE))
modules:

5
debian/rules vendored
View File

@ -6,5 +6,8 @@
%:
dh $@ --parallel
override_dh_auto_build:
dh_auto_build -- prefix=/usr
override_dh_auto_install:
prefix=/usr dh_auto_install --
dh_auto_install -- prefix=/usr

View File

@ -7,4 +7,4 @@ Name: @libname@
Description: @description@
Version: @version@
Cflags: @cflags@
Libs: -L${libdir} -l@libname@
Libs: -L${libdir} -l@libname@ -lm