Skip to content

Commit

Permalink
Add dist target for Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Feb 7, 2010
1 parent 02aa8fe commit d395753
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
VERSION=0.1.1
CC=cc
INSTALL=install
CFLAGS=$(shell pkg-config --cflags sqlite3 libpcre) -fPIC
LIBS=$(shell pkg-config --libs libpcre)
prefix=/usr
.PHONY : install clean

.PHONY : install dist clean

pcre.so : pcre.c
${CC} -shared -o $@ ${CFLAGS} -W -Werror pcre.c ${LIBS} -Wl,-z,defs

install : pcre.so
${INSTALL} -pD -m755 pcre.so ${DESTDIR}${prefix}/lib/sqlite3/pcre.so

dist : clean
mkdir sqlite3-pcre-${VERSION}
cp -f pcre.c Makefile sqlite3-pcre-${VERSION}
tar -czf sqlite3-pcre-${VERSION}.tar.gz sqlite3-pcre-${VERSION}

clean :
-rm -f pcre.so

0 comments on commit d395753

Please sign in to comment.