install keyconvert to /usr/bin
[sfa.git] / keyconvert / Makefile
index 917831e..4b39432 100644 (file)
@@ -1,5 +1,12 @@
-keyconvert:
+# 'make' should not install - DESTDIR might be wrong at this stage
+all: keyconvert
+
+keyconvert: 
        gcc -o keyconvert -lcrypto -ldl keyconvert.c keyconvertmain.c b64decode.c
 
+install: keyconvert
+       install -c -m 0755 keyconvert $(DESTDIR)/usr/bin/keyconvert
 clean:
        rm -rf keyconvert
+       rm -f $(DESTDIR)/usr/bin/keyconvert