# Makefile for svndelta # Borrowed/copied from ESR. PACKAGE=svndelta VERSION=$(shell sed $(DESTDIR)$(mandir)/man1/$(PACKAGE).1.gz cp -p $(PACKAGE).1 $(DESTDIR)$(mandir)/man1/$(PACKAGE).1 cp -p share/$(PACKAGE)/$(PACKAGE).rb $(DESTDIR)$(datadir)/$(PACKAGE) mkdir -p $(DESTDIR)$(datadir)/$(PACKAGE)/diff mkdir -p $(DESTDIR)$(datadir)/$(PACKAGE)/diff/lcs cp -r -p share/$(PACKAGE)/diff/lcs.rb $(DESTDIR)$(datadir)/$(PACKAGE)/diff cp -r -p share/$(PACKAGE)/diff/lcs/*.rb $(DESTDIR)$(datadir)/$(PACKAGE)/diff/lcs uninstall: rm -f $(DESTDIR)$(bindir)/$(PACKAGE) -rm -f $(DESTDIR)$(mandir)/man1/$(PACKAGE).1* -rm -f $(DESTDIR)$(prefix)/man/man1/$(PACKAGE).1* -rm -f $(DESTDIR)$(datadir)/$(PACKAGE)/$(PACKAGE).rb -rm -f $(DESTDIR)$(datadir)/$(PACKAGE)/diff/lcs/*.rb -rm -f $(DESTDIR)$(datadir)/$(PACKAGE)/diff/lcs.rb -rmdir $(DESTDIR)$(datadir)/$(PACKAGE)/diff/lcs -rmdir $(DESTDIR)$(datadir)/$(PACKAGE)/diff -rmdir $(DESTDIR)$(datadir)/$(PACKAGE) # Builds the man page from the POD-format documentation. $(PACKAGE).1: $(PACKAGE).pod Makefile pod2man --release "$(PACKAGE) $(VERSION)" \ --center "$(PACKAGE) $(VERSION)" \ $(PACKAGE).pod > $@ $(PACKAGE)-$(VERSION).tar.gz: $(SOURCES) $(DOCS) @mkdir $(PACKAGE)-$(VERSION) @cp --parents $(SOURCES) $(PACKAGE)-$(VERSION) @tar -czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) @rm -fr $(PACKAGE)-$(VERSION) dist: $(PACKAGE)-$(VERSION).tar.gz # The following rules are not for public use. # Builds the HTML version of the man page. doc/www/$(PACKAGE).html: $(PACKAGE).pod pod2html --noindex --verbose --css=$(PACKAGE)man.css $^ > $@