mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
make install
This commit is contained in:
parent
ddf1c1d9c9
commit
d7a36076d5
9 changed files with 75 additions and 3 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -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
|
||||
|
|
2
Doxyfile
2
Doxyfile
|
@ -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
|
||||
|
|
13
Makefile
13
Makefile
|
@ -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]"
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
|
||||
doc:
|
||||
doxygen
|
||||
|
||||
install:
|
||||
${MAKE} -C include install
|
||||
|
|
2
d/include/Makefile
Normal file
2
d/include/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
|||
install:
|
||||
${MAKE} -C psyc install
|
13
d/include/psyc/Makefile
Normal file
13
d/include/psyc/Makefile
Normal 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
14
include/Makefile
Normal 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
13
include/psyc/Makefile
Normal 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
13
lib/Makefile
Normal 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}
|
Loading…
Reference in a new issue