safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

mkfile (880B)


      1 <config.mk
      2 
      3 all:V: safe safe-agent
      4 
      5 safe: safe.o readpassphrase.o
      6 	$LD -o $target $prereq $LDFLAGS $LDLIBS
      7 
      8 safe-agent: safe-agent.o
      9 	$LD -o $target $prereq $LDFLAGS $LDLIBS
     10 
     11 %.o: %.c
     12 	$CC $CPPFLAGS $CFLAGS -c $stem.c
     13 
     14 clean:V:
     15 	rm -f *.o safe safe-agent
     16 
     17 install:V: safe safe-agent
     18 	mkdir -p ${DESTDIR}${PREFIX}/bin
     19 	cp safe ${DESTDIR}${PREFIX}/bin/safe
     20 	cp safe-agent ${DESTDIR}${PREFIX}/bin/safe-agent
     21 	chmod 755 ${DESTDIR}${PREFIX}/bin/safe
     22 	chmod 755 ${DESTDIR}${PREFIX}/bin/safe-agent
     23 	mkdir -p ${DESTDIR}${MANDIR}/man1
     24 	cp safe.1 ${DESTDIR}${MANDIR}/man1/safe.1
     25 	chmod 644 ${DESTDIR}${MANDIR}/man1/safe.1
     26 	cp safe-agent.1 ${DESTDIR}${MANDIR}/man1/safe-agent.1
     27 	chmod 644 ${DESTDIR}${MANDIR}/man1/safe-agent.1
     28 
     29 uninstall:V:
     30 	rm ${DESTDIR}${PREFIX}/bin/safe
     31 	rm ${DESTDIR}${PREFIX}/bin/safe-agent
     32 	rm ${DESTDIR}${MANDIR}/man1/safe.1
     33 	rm ${DESTDIR}${MANDIR}/man1/safe-agent.1