# # Needs git2cl from http://josefsson.org/git2cl/git2cl PACKAGE=mariposa-4 VERSION := $(shell cat VERSION) distdir = $(PACKAGE)-$(VERSION) tgz = $(distdir).tar.gz DIST_COMMON = AUTHORS ChangeLog COPYING INSTALL Makefile NEWS README \ THANKS TODO VERSION # DIST_COMMON = m4c m4d m4d.pl DIST_SOURCES = mariposa-4 m4d DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) INSTALL_SCRIPT = install -c bin_SCRIPTS = $(DIST_SOURCES) prefix = /usr/local bindir = ${prefix}/bin install: install-binSCRIPTS install-binSCRIPTS: test -d $(DESTDIR)$(bindir) || mkdir -p $(DESTDIR)$(bindir) for file in $(bin_SCRIPTS); do \ $(INSTALL_SCRIPT) $$file "$(DESTDIR)$(bindir)/$$file"; \ done COPYING: ln -s /usr/share/common-licenses/GPL-3 $@ # commits before b517a30ea6a are for other projects ChangeLog: NEWS git log b517a30ea6a.. --pretty --numstat --summary | \ sed 's/<[^>][^>]*>//g' | git2cl >ChangeLog VERSION: ChangeLog date +%Y%m%d >$@ distdir: VERSION rm -rf $(distdir) mkdir $(distdir) cp -a $(DISTFILES) $(distdir) dist: distdir COPYING tar chof - $(distdir) | gzip -c >$(tgz) ls -l $(tgz)