X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=btpasskey%2FMakefile;h=44ddb4dbca8f1665670124977ea4218f0483964a;hb=e6efc7f4fc4ccfbe6307425e097f2b73ed49057b;hp=21380db04e98b535798bacf3392240b4f82b7922;hpb=5bbb50853bf359a0d6d32e43eb330f84b2bbb1be;p=oss%2Fbtcli.git diff --git a/btpasskey/Makefile b/btpasskey/Makefile index 21380db..44ddb4d 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.3 +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