~ubuntu-branches/ubuntu/oneiric/gengetopt/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-07-15 19:23:36 UTC
  • Revision ID: james.westby@ubuntu.com-20100715192336-50dm37vc30eyezqh
Tags: 2.22.4-3
* Change my email address.
* Bump Standards.
* Add gbp config file.
* Add .gitignore file.
* Switch to debhelper 7 + autotools_dev add-on.
* Drop CDBS.
* Update debian/docs file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/cdbs/1/class/autotools.mk
 
3
%:
 
4
        dh --with autotools_dev $@
5
5
 
6
6
SAVERESTORE := \
7
7
        doc/cmdline1.c \
28
28
        tests/test_manual_help_cmd.c \
29
29
        tests/test_manual_help_cmd.h \
30
30
 
31
 
update-config::
32
 
        for f in $(SAVERESTORE) ; do [ -e $$f.d-r-orig ] || cp -p $$f $$f.d-r-orig ; done
33
 
 
34
 
clean::
 
31
override_dh_auto_clean:
 
32
        dh_auto_clean
35
33
        for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done
36
34
 
37
 
install/gengetopt::
 
35
override_dh_auto_install:
 
36
        dh_auto_install
38
37
        rm -f debian/gengetopt/usr/share/doc/gengetopt/AUTHORS
39
38
        rm -f debian/gengetopt/usr/share/doc/gengetopt/COPYING
40
39
        rm -f debian/gengetopt/usr/share/doc/gengetopt/INSTALL
41
40
        rm -f debian/gengetopt/usr/share/doc/gengetopt/LICENSE
 
41
        rm -f debian/gengetopt/usr/share/doc/gengetopt/THANKS
42
42
        rm -f debian/gengetopt/usr/share/doc/gengetopt/ChangeLog
43
43
        rm -f debian/gengetopt/usr/share/info/dir
44
 
 
45
 
myreset:
46
 
        for f in $(SAVERESTORE) ; do cp -p ../orig/*/$$f $$f ; done