File: rules

package info (click to toggle)
libapache-gallery-perl 1.0.2-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 728 kB
  • sloc: perl: 1,280; sh: 21; makefile: 15
file content (26 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

%: 
	dh $@

# it is necessary to set MOD_PERL_API_VERSION to 2 to avoid trying to
# use modperl 1
override_dh_auto_test:
	MOD_PERL_API_VERSION=2 dh_auto_test;

# install templates and icons
override_dh_auto_install:
	dh_auto_install;
	cp -r templates/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/templates/.;
	cp -r htdocs/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/icons/.;

# put the missing icons in place
override_dh_auto_configure:
	dh_auto_configure;
	uudecode -o htdocs/text-txt.png debian/text-text.png.uuencode
	uudecode -o htdocs/text-html.png debian/text-html.png.uuencode

# remove the missing icons on clean
override_dh_auto_clean:
	dh_auto_clean;
	rm -f htdocs/text-text.png htdocs/text-html.png