PREFIX ?= /usr/local PLUGINDIR ?= $(PREFIX)/lib/opensync/python-plugins CONFIGDIR ?= $(PREFIX)/share/opensync/defaults # $(shell pkg-config opensync-1.0 --variable=plugindir) # $(shell pkg-config opensync-1.0 --variable=configdir) DISTFILES = ChangeLog COPYING Makefile README exchange-sync exchange-sync.py VERSION = $(shell awk '/info.version/ {print $$3;}' exchange-sync.py) DISTDIR = opensync-plugin-exchange-$(VERSION) all: @echo Nothing to be done ... install: install -d $(PLUGINDIR) $(CONFIGDIR) install -m 755 exchange-sync.py $(PLUGINDIR) install -m 644 exchange-sync $(CONFIGDIR) dist: svn up svn2cl --authors=AUTHORS --group-by-day mkdir -p $(DISTDIR) cp $(DISTFILES) $(DISTDIR) tar cvzf $(DISTDIR).tar.gz $(DISTDIR) $(RM) -r $(DISTDIR) $(RM) ChangeLog