~ubuntu-branches/ubuntu/oneiric/muse-el/oneiric

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Michael W. Olson (GNU address)
  • Date: 2008-01-09 15:51:46 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080109155146-0wwzermvvzs9rqzo
Tags: 3.11-3ubuntu1
* Merge with with Debian unstable (LP: #137284). Remaining Ubuntu changes:
  - Keep manual.
  - Set Ubuntu MOTU to be Maintainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.PHONY: all lisp contrib autoloads examples experimental doc info-only
2
2
.PHONY: clean realclean distclean fullclean install-info install-bin install
3
 
.PHONY: test dist release debbuild debrevision debrelease upload elpa
4
 
 
5
 
include Makefile.defs
 
3
.PHONY: test dist release debclean debprepare debbuild debinstall deb upload
 
4
.PHONY: elpa
 
5
 
 
6
DEFS = $(shell test -f Makefile.defs && echo Makefile.defs \
 
7
        || echo Makefile.defs.default)
 
8
 
 
9
include $(DEFS)
6
10
 
7
11
SUBDIRS = lisp contrib examples experimental texi
8
12
 
56
60
        -rm -fr ../$(PROJECT)-$(VERSION)
57
61
 
58
62
dist: autoloads distclean
59
 
        tla inventory -sB | tar -cf - --no-recursion -T- | \
60
 
          (mkdir -p ../$(PROJECT)-$(VERSION); cd ../$(PROJECT)-$(VERSION) && \
61
 
          tar xf -)
 
63
        git archive --format=tar --prefix=$(PROJECT)-$(VERSION)/ HEAD | \
 
64
          (cd .. && tar xf -)
 
65
        rm -f ../$(PROJECT)-$(VERSION)/.gitignore
62
66
        cp lisp/$(PROJECT)-autoloads.el ../$(PROJECT)-$(VERSION)/lisp
63
67
 
64
68
release: dist
78
82
        mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
79
83
        (cd .. && tar -czf $(DEBNAME)_$(VERSION).orig.tar.gz \
80
84
            $(DEBNAME)-$(VERSION))
81
 
        (cd debian && tla inventory -sB | tar -cf - --no-recursion -T- | \
82
 
          (mkdir -p ../../$(DEBNAME)-$(VERSION)/debian; \
83
 
            cd ../../$(DEBNAME)-$(VERSION)/debian && \
84
 
            tar xf -))
 
85
        (cd debian && git archive --format=tar \
 
86
          --prefix=$(DEBNAME)-$(VERSION)/debian/ HEAD | \
 
87
          (cd ../.. && tar xf -))
85
88
 
86
89
debbuild:
87
90
        (cd ../$(DEBNAME)-$(VERSION) && \
100
103
 
101
104
deb: debclean debprepare debbuild debinstall
102
105
 
103
 
upload: release
 
106
upload:
104
107
        (cd .. && \
105
108
          scp $(PROJECT)-$(VERSION).zip* $(PROJECT)-$(VERSION).tar.gz* \
106
109
            mwolson@download.gna.org:/upload/muse-el)