sick

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | README | LICENSE

commit eada8c0509bfb04505efe198a6bf3ae9dbf8c22a
parent 31642f26ccb7474f87d042e6f516d14fdce0fe88
Author: z3bra <contactatz3bradotorg>
Date:   Wed Jun  7 08:48:15 +0200

Render makefile stricly POSIX

Diffstat:
makefile | 28+++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/makefile b/makefile @@ -1,5 +1,7 @@ include config.mk +.POSIX: + ED25519_SRC = ed25519/src/add_scalar.c \ ed25519/src/fe.c \ ed25519/src/ge.c \ @@ -11,23 +13,23 @@ ED25519_SRC = ed25519/src/add_scalar.c \ ed25519/src/sign.c \ ed25519/src/verify.c -SRC = sick.c base64.c ${ED25519_SRC} -OBJ = $(patsubst %.c,%.o,$(SRC)) +SRC = sick.c base64.c $(ED25519_SRC) +OBJ = $(SRC:.c=.o) -sick: ${OBJ} - ${LD} -o sick ${OBJ} ${LDFLAGS} ${LIBS} +sick: $(OBJ) + $(LD) -o sick $(OBJ) $(LDFLAGS) $(LIBS) clean: - rm -f ${OBJ} sick + rm -f $(OBJ) sick install: sick - mkdir -p ${DESTDIR}${PREFIX}/bin - cp sick ${DESTDIR}${PREFIX}/bin/sick - chmod 755 ${DESTDIR}${PREFIX}/bin/sick - mkdir -p ${DESTDIR}${MANDIR}/man1 - cp sick.1 ${DESTDIR}${MANDIR}/man1/sick.1 - chmod 644 ${DESTDIR}${MANDIR}/man1/sick.1 + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp sick $(DESTDIR)$(PREFIX)/bin/sick + chmod 755 $(DESTDIR)$(PREFIX)/bin/sick + mkdir -p $(DESTDIR)$(MANDIR)/man1 + cp sick.1 $(DESTDIR)$(MANDIR)/man1/sick.1 + chmod 644 $(DESTDIR)$(MANDIR)/man1/sick.1 uninstall: - rm ${DESTDIR}${PREFIX}/bin/sick - rm ${DESTDIR}${MANDIR}/man1/sick.1 + rm $(DESTDIR)$(PREFIX)/bin/sick + rm $(DESTDIR)$(MANDIR)/man1/sick.1