9 PREFIX ?= $(DESTDIR)/usr/local
10 MANPREFIX ?= $(PREFIX)/man
16 bindir = $(PREFIX)/bin
17 mandir = $(MANPREFIX)/man1
18 sharedir = $(PREFIX)/share
19 gpassdir = $(sharedir)/gpass
23 .SUFFIXES: .c .o .1 .m4
26 $(CC) -o $@ $(OBJ) $(LIBS) $(LDFLAGS)
29 $(CC) -std=c99 -pedantic -DPREFIX=\"$(PREFIX)\" $(CFLAGS) $(CPPFLAGS) -c $<
34 $(M4) -DPREFIX=$(PREFIX) <$< >$@
38 install -m 755 $(BIN) $(bindir)
40 install -m 644 $(MAN) $(mandir)
42 install -m 644 eff.long $(gpassdir)
45 cd $(bindir) && rm -f $(BIN)
46 cd $(mandir) && rm -f $(MAN)
50 -rm -f $(BIN) $(OBJ) $(MAN) *.tar.gz *.core gpass-$(V)
54 cp -f CHANGES COPYING README Makefile version.mk eff.long $(SRC) $(M4S) \
56 tar cf - gpass-$(V) | gzip >gpass-$(V).tar.gz
62 .PHONY: all options install uninstall clean dist