X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=Makefile;h=64e6cbe6775a35c63e4fa72d2b3a581d4a54c36d;hb=8a977a8371f2ea54e3888494e1b474befeba318b;hp=aa18aaad5a2e096e9456008fcafc41f65d45bb64;hpb=7970ab05408ec48ffde9bffddb451a8e49ef6fa6;p=monkeysphere.git diff --git a/Makefile b/Makefile index aa18aaa..64e6cbe 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,12 @@ -monkeysphere: main.c gnutls-helpers.o - gcc -g -Wall --pedantic -o monkeysphere main.c `libgnutls-config --libs --cflags` -lgnutls-extra gnutls-helpers.o +all: keytrans -gpg2ssh: gpg2ssh.c gnutls-helpers.o - gcc -g -Wall --pedantic -o gpg2ssh gpg2ssh.c `libgnutls-config --libs --cflags` -lgnutls-extra gnutls-helpers.o +keytrans: + $(MAKE) -C src/keytrans -ssh2gpg: ssh2gpg.c gnutls-helpers.o - gcc -g -Wall --pedantic -o ssh2gpg ssh2gpg.c `libgnutls-config --libs --cflags` -lgnutls-extra gnutls-helpers.o +release: clean + tar c COPYING doc etc Makefile man src | gzip -n > ../monkeysphere_`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`.orig.tar.gz -%.o: %.c - gcc -g -Wall --pedantic -o $@ -c $< +clean: + $(MAKE) -C src/keytrans clean -clean: - rm -f monkeysphere *.o - -.PHONY: clean +.PHONY: all clean release