File: rules

package info (click to toggle)
gengetopt 2.23%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,032 kB
  • sloc: cpp: 14,765; ansic: 8,232; sh: 4,782; makefile: 754; yacc: 514; lex: 179; sed: 3
file content (51 lines) | stat: -rwxr-xr-x 1,416 bytes parent folder | download
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
49
50
51
#!/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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test --no-parallel
endif