X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=btpasskey%2FMakefile;fp=btpasskey%2FMakefile;h=1e65a6b0aa2e5239a67485e0e623640f0e55b5a0;hb=58d176659e21b25079ed21bae2ea8e9b5c325b44;hp=21380db04e98b535798bacf3392240b4f82b7922;hpb=11aae73b301b6791d11bd974ab301bd2b20bba55;p=oss%2Fbtcli.git diff --git a/btpasskey/Makefile b/btpasskey/Makefile index 21380db..1e65a6b 100644 --- a/btpasskey/Makefile +++ b/btpasskey/Makefile @@ -1,8 +1,12 @@ # this Makefile is for building btcli it depends on pkg-config libdbus-1-dev (and build-essential) packages +BTPASS_VERSION?=1.2 +prefix=/usr/local btpasskey: btpasskey.c - $(CC) `pkg-config --libs --cflags dbus-1` -g -DDBUS_API_SUBJECT_TO_CHANGE -DVERSION="\"1.1\"" -o btpasskey btpasskey.c + $(CC) `pkg-config --libs --cflags dbus-1` -g -DDBUS_API_SUBJECT_TO_CHANGE -DVERSION="\"$(BTPASS_VERSION)\"" -o btpasskey btpasskey.c install: btpasskey - install -m 755 -o root btpasskey /usr/bin - install -m 644 -o root btpasskey.1 /usr/share/man/man1 + install -m 755 -o root btpasskey $(DESTDIR)$(prefix)/bin + install -m 644 -o root btpasskey.1 $(DESTDIR)$(prefix)/share/man/man1 +clean: + rm *.o btpasskey