File: rules

package info (click to toggle)
gengetopt 2.22.6+dfsg0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,732 kB
  • sloc: cpp: 14,709; sh: 11,845; ansic: 8,030; makefile: 689; yacc: 514; lex: 171; sed: 3
file content (48 lines) | stat: -rwxr-xr-x 1,352 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f

export REPACK_SH=$(CURDIR)/debian/repack.sh

%:
	dh $@ --with autoreconf

SAVERESTORE := \
	doc/cmdline1.c \
	doc/cmdline1.h \
	doc/cmdline1.h.texinfo \
	doc/cmdline2.c \
	doc/cmdline2.h \
	doc/gengetopt.html \
	doc/help_output.texinfo \
	doc/main1.cc.texinfo \
	doc/multiple_example.c.texinfo \
	doc/sample1.ggo.texinfo \
	doc/sample1.output.texinfo \
	doc/samples.stamp \
	doc/test_conf_parser.c.texinfo \
	doc/test_conf_parser_ov2.c.texinfo \
	doc/test_multiple_parsers.c.texinfo \
	tests/test_conf_parser_ov2.c \
	tests/test_conf_parser_ov3.c \
	doc/help_modes.output.texinfo \
	doc/sample1_2.output.texinfo \
	doc/test_modes_cmd.ggo.texinfo \
	tests/test_conf_parser_ov4.c \
	tests/test_manual_help_cmd.c \
	tests/test_manual_help_cmd.h \

override_dh_auto_clean:
	dh_auto_clean
	for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done

override_dh_auto_install:
	dh_auto_install
	rm -f debian/gengetopt/usr/share/doc/gengetopt/AUTHORS
	rm -f debian/gengetopt/usr/share/doc/gengetopt/COPYING
	rm -f debian/gengetopt/usr/share/doc/gengetopt/INSTALL
	rm -f debian/gengetopt/usr/share/doc/gengetopt/LICENSE
	rm -f debian/gengetopt/usr/share/doc/gengetopt/THANKS
	rm -f debian/gengetopt/usr/share/doc/gengetopt/ChangeLog
	rm -f debian/gengetopt/usr/share/info/dir

get-orig-source:
	uscan --force-download