parent
2d4dbb27b3
commit
1e358f915c
9 changed files with 24 additions and 3 deletions
@ -0,0 +1,10 @@ |
|||||||
|
.PHONY: all |
||||||
|
|
||||||
|
all: install |
||||||
|
|
||||||
|
install: |
||||||
|
install -d $(DEST_DIR)/
|
||||||
|
install -d $(DEST_DIR)/include/
|
||||||
|
for file in include/*; do \
|
||||||
|
install -m 644 $$file $(DEST_DIR)/include/; \
|
||||||
|
done
|
@ -0,0 +1,11 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
|
||||||
|
if [ -z "$1" ] |
||||||
|
then |
||||||
|
printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2 |
||||||
|
exit 1 |
||||||
|
fi |
||||||
|
|
||||||
|
cd $(dirname $0) |
||||||
|
libname=$(basename $(pwd)) |
||||||
|
make DEST_DIR="$1" install |
Loading…
Reference in new issue