rewrite makefile
This commit is contained in:
parent
c54e499fc1
commit
9472966b92
10
Makefile
10
Makefile
|
@ -1,3 +1,11 @@
|
||||||
|
PREFIX := /data/data/com.termux/files/usr
|
||||||
|
BIN = whatprovides
|
||||||
|
DB_PATH = $(PREFIX)/share/whatprovides/db
|
||||||
|
DB_FILES = $(wildcard db/*)
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
bash install.sh
|
install -Dm700 -t $(PREFIX)/bin $(BIN)
|
||||||
|
for i in $(DB_FILES); do \
|
||||||
|
install -Dm600 $$i $(DB_PATH)/$$(basename $$i); \
|
||||||
|
done
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
NAME="whatprovides"
|
|
||||||
mkdir -p $PREFIX/share/${NAME}
|
|
||||||
cp -r db $PREFIX/share/${NAME}
|
|
||||||
cp ${NAME} $PREFIX/bin
|
|
||||||
|
|
||||||
echo "Installation finished. execute $NAME -h for help"
|
|
Loading…
Reference in New Issue