safe

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

makefile (848B)


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