]> www.wagner.pp.ru Git - oss/btcli.git/blobdiff - btpasskey/Makefile
Added makefile to build Debian package
[oss/btcli.git] / btpasskey / Makefile
index 21380db04e98b535798bacf3392240b4f82b7922..1e65a6b0aa2e5239a67485e0e623640f0e55b5a0 100644 (file)
@@ -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