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

support make install DESTDIR=...

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 1984-04-04 00:44:05 +00:00
parent 651d5f1d27
commit 7ed845c4f2
6 changed files with 27 additions and 17 deletions

View file

@ -9,15 +9,28 @@ all:
it: all
destdir:
@if test "foo$(DESTDIR)" = "foo" ; then \
echo "libpsyc install: You must provide a DESTDIR=/usr or such." ;\
exit 2 ;\
else true; fi
-@if [ ! -w "$(DESTDIR)" ]; then \
mkdir "$(DESTDIR)" ;\
fi
@if [ ! -w "$(DESTDIR)" ]; then \
echo "libpsyc install: You must provide a writable DESTDIR." ;\
exit 2 ;\
else true; fi
install: install-lib install-inc install-d
install-lib: all
install-lib: destdir all
${MAKE} -C lib install
install-inc: all
install-inc: destdir all
${MAKE} -C include install
install-d: all
install-d: destdir all
${MAKE} -C d install
debug: