Skip to content

Commit

Permalink
add pkg-config support contributed by Olivier Girondel
Browse files Browse the repository at this point in the history
git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1377 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information
vinoski committed Jan 29, 2009
1 parent 64260b9 commit 47c0c70
Show file tree
Hide file tree
Showing 5 changed files with 1,152 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -3,6 +3,7 @@ SUBDIRS = c_src src man www/shopingcart www/code doc scripts
include ./include.mk
include ./vsn.mk

PKGCONFIG_FILES = yaws.pc

all debug clean:
@set -e ; \
Expand All @@ -17,7 +18,9 @@ install: all
set -e ; \
for d in $(SUBDIRS) ; do \
if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \
done
done
$(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/pkgconfig
$(INSTALL) -m 644 $(PKGCONFIG_FILES) $(DESTDIR)$(PREFIX)/lib/pkgconfig
@echo "-------------------------------"
@echo
@echo "** etc files went into ${ETCDIR}"
Expand Down
15 changes: 15 additions & 0 deletions README.pkg-config
@@ -0,0 +1,15 @@
##
## pkg-config(1) support
##

If you have pkg-config installed on your system, you can
use it as shown below to obtain information about Yaws:

$ pkg-config yaws --modversion
1.80

$ pkg-config yaws --cflags
-I/usr/local/lib/yaws/include

$ pkg-config yaws --libs
-pa /usr/local/lib/yaws/ebin

0 comments on commit 47c0c70

Please sign in to comment.