1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
libpsyc/Makefile

73 lines
1.4 KiB
Makefile
Raw Normal View History

2011-05-18 20:08:30 +00:00
.PHONY: doc test bench
2011-06-12 18:55:26 +00:00
.NOTPARALLEL: clean
2011-04-19 20:52:08 +00:00
1984-04-04 00:44:06 +00:00
export PREFIX="$(DESTDIR)/usr"
2011-11-11 21:18:24 +00:00
indent_args = -nbad -bap -bbo -nbc -br -brs -ncdb -cdw -ce -ci4 -cli0 -cs -d0 -di1 \
-nfc1 -nfca -hnl -i4 -ip0 -l80 -lp -npcs -nprs -npsl -saf -sai -saw -nsc -nsob -nss
2011-04-30 14:05:48 +00:00
all:
${MAKE} -C src
2011-04-19 20:52:08 +00:00
2011-05-10 14:54:40 +00:00
it: all
1984-04-04 00:44:05 +00:00
destdir:
1984-04-04 00:44:06 +00:00
-@if test "foo$(DESTDIR)" != "foo" ; then \
mkdir "$(DESTDIR)" ;\
fi
@if test "foo$(PREFIX)" = "foo" ; then \
echo "libpsyc install: You must provide a PREFIX=/usr or such." ;\
1984-04-04 00:44:05 +00:00
exit 2 ;\
else true; fi
1984-04-04 00:44:06 +00:00
-@if [ ! -w "$(PREFIX)" ]; then \
mkdir "$(PREFIX)" ;\
1984-04-04 00:44:05 +00:00
fi
1984-04-04 00:44:06 +00:00
@if [ ! -w "$(PREFIX)" ]; then \
echo "libpsyc install: You must provide a writable PREFIX." ;\
1984-04-04 00:44:05 +00:00
exit 2 ;\
else true; fi
2011-05-09 00:27:12 +00:00
install: install-lib install-inc install-d
1984-04-04 00:44:05 +00:00
install-lib: destdir all
2011-05-09 00:27:12 +00:00
${MAKE} -C lib install
1984-04-04 00:44:05 +00:00
install-inc: destdir all
2011-05-09 00:27:12 +00:00
${MAKE} -C include install
1984-04-04 00:44:05 +00:00
install-d: destdir all
2011-05-09 00:27:12 +00:00
${MAKE} -C d install
2011-04-30 14:41:30 +00:00
debug:
${MAKE} -C src debug
2011-04-19 20:52:08 +00:00
diet:
2011-04-30 13:42:48 +00:00
${MAKE} -C src diet
2011-04-19 20:52:08 +00:00
2011-05-08 01:15:06 +00:00
debugtest: testdebug test
testdebug: debug
${MAKE} -C test debug
test: all
${MAKE} -C test test
# nettest currently unavailable. please debug it.
2011-04-19 20:31:43 +00:00
2016-01-29 23:33:30 +00:00
check: test
bench: all
${MAKE} -C test bench
2011-04-19 20:31:43 +00:00
doc:
doxygen
2011-04-19 20:52:08 +00:00
clean:
2011-05-08 02:11:36 +00:00
${MAKE} -C src clean
2011-05-10 14:54:40 +00:00
${MAKE} -C lib clean
2011-05-08 02:11:36 +00:00
${MAKE} -C test clean
rm -rf doc/html doc/latex doc/man
2011-04-30 14:05:48 +00:00
help:
2011-05-09 00:27:12 +00:00
@/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]"
2012-01-21 19:02:20 +00:00