-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
35 lines (28 loc) · 801 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DESTSCRIPTNAME=dropboxignore
DESTBINDIR=/usr/local/bin
DESTLIBDIR=/usr/local/lib/dropboxignore
# run shell tests
# bats should be in PATH
test :
docker-compose run dropboxignore-tests
test-ci:
bats tests
# install dropboxignore
install :
$(info installing dropboxignore in $(DESTDIR))
mkdir -p "${DESTBINDIR}" "${DESTLIBDIR}"
cp src/bin/cli.sh "${DESTBINDIR}/${DESTSCRIPTNAME}"
chmod +x "${DESTBINDIR}/${DESTSCRIPTNAME}"
cp -r src/lib/commands "${DESTLIBDIR}"
cp -r src/lib/modules "${DESTLIBDIR}"
$(info dropboxignore has been installed)
# uninstall dropboxignore
uninstall :
rm -rf "${DESTBINDIR}/${DESTSCRIPTNAME}" "${DESTLIBDIR}"
$(info dropboxignore has been uninstalled)
# create snap
build-snap :
snapcraft --debug
# upload snap
publish-snap :
snapcraft upload $(SNAP_FILE)