make install

This commit is contained in:
tg(x) 2011-05-09 02:27:12 +02:00
parent 211c0bcefb
commit 6a2b160066
9 changed files with 75 additions and 3 deletions

5
.gitignore vendored
View File

@ -1,7 +1,10 @@
lib
lib/libpsyc.a
doc/html
doc/latex
doc/man
d/doc/html
d/doc/latex
d/doc/man
src/match
test/testMatch
test/testParser

View File

@ -681,7 +681,7 @@ RECURSIVE = YES
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = include/d
EXCLUDE =
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded

View File

@ -3,6 +3,17 @@
all:
${MAKE} -C src
install: install-lib install-inc install-d
install-lib: all
${MAKE} -C lib install
install-inc: all
${MAKE} -C include install
install-d: all
${MAKE} -C d install
debug:
${MAKE} -C src debug
@ -26,4 +37,4 @@ clean:
rm -rf doc/html doc/latex doc/man
help:
@/bin/echo -e "Usage:\n\tmake - compile\n\tmake diet - compile with diet libc\n\tmake test\n\tmake doc"
@/bin/echo -e "Usage:\n\tmake - compile\n\tmake diet - compile with diet libc\n\tmake test\n\tmake doc\n\tmake install [prefix=/usr]"

View File

@ -2,3 +2,6 @@
doc:
doxygen
install:
${MAKE} -C include install

2
d/include/Makefile Normal file
View File

@ -0,0 +1,2 @@
install:
${MAKE} -C psyc install

13
d/include/psyc/Makefile Normal file
View File

@ -0,0 +1,13 @@
prefix = /usr
includedir = ${prefix}/include/d
INSTALL = install
HEADERS = common.d parser.d
install: ${HEADERS}
installdir:
${INSTALL} -d ${includedir}/psyc
${HEADERS}: installdir
${INSTALL} -m 644 $@ ${includedir}/psyc

14
include/Makefile Normal file
View File

@ -0,0 +1,14 @@
prefix = /usr
includedir = ${prefix}/include
INSTALL = install
HEADERS = psyc.h
install: ${HEADERS}
${MAKE} -C psyc install
installdir:
${INSTALL} -d ${includedir}
${HEADERS}: installdir
${INSTALL} -m 644 $@ ${includedir}

13
include/psyc/Makefile Normal file
View File

@ -0,0 +1,13 @@
prefix = /usr
includedir = ${prefix}/include
INSTALL = install
HEADERS = packet.h parser.h render.h syntax.h text.h
install: ${HEADERS}
installdir:
${INSTALL} -d ${includedir}/psyc
${HEADERS}: installdir
${INSTALL} -m 644 $@ ${includedir}/psyc

13
lib/Makefile Normal file
View File

@ -0,0 +1,13 @@
prefix = /usr
libdir = ${prefix}/lib
INSTALL = install
LIBS = libpsyc.a
install: ${LIBS}
libdir:
${INSTALL} -d ${libdir}
${LIBS}: libdir
${INSTALL} $@ ${libdir}