~ubuntu-branches/ubuntu/precise/pristine-tar/precise

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2010-08-19 16:36:25 UTC
  • Revision ID: james.westby@ubuntu.com-20100819163625-y78g4vegbjm1n7mw
Tags: 1.10
* pristine-gz gengz: Bugfix: Always remove uncompressed input file.
* Large refactoring and modularization. (Thanks Gabriel de Perthuis
  for inspiration for this.))
* Remove environment variables used by tar, gz, and bzip2, to avoid
  local environment settings possibly breaking things.
  Closes: #498760 (probably; thanks Ralph Lange for analysis)
* Lintian fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
build: zgz/zgz pristine-tar.spec
2
 
        pod2man -c pristine-tar pristine-tar > pristine-tar.1
3
 
        pod2man -c pristine-gz  pristine-gz  > pristine-gz.1
4
 
        pod2man -c pristine-bz2 pristine-bz2 > pristine-bz2.1
5
 
        pod2man -c zgz zgz.pod > zgz.1
6
 
 
7
 
ZGZ_SOURCES = zgz/zgz.c zgz/bits.c zgz/deflate.c zgz/gzip.c zgz/trees.c zgz/util.c \
8
 
              zgz/old-bzip2/*.c
9
 
zgz/zgz: $(ZGZ_SOURCES) zgz/gzip.h
10
 
        gcc -Wall -O2 -lz -o $@ $(ZGZ_SOURCES)
11
 
 
12
 
install:
13
 
        install -d $(DESTDIR)/usr/bin
14
 
        install -d $(DESTDIR)/usr/share/man/man1
15
 
        install pristine-tar pristine-gz pristine-bz2 zgz/zgz $(DESTDIR)/usr/bin
16
 
        install -m 0644 *.1 $(DESTDIR)/usr/share/man/man1
17
 
 
18
 
clean: pristine-tar.spec
19
 
        rm -f zgz/zgz *.1
20
 
 
21
 
pristine-tar.spec:
22
 
        sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" pristine-tar.spec
23
 
 
24
 
.PHONY: pristine-tar.spec