File: rules

package info (click to toggle)
rt-extension-calendar 1.01-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 276 kB
  • ctags: 166
  • sloc: perl: 2,322; makefile: 20
file content (29 lines) | stat: -rwxr-xr-x 562 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
#!/usr/bin/make -f

RT_VERSIONS=4

%:
	dh $@

override_dh_auto_configure:
	rm -rf inc/Module
	for ver in $(RT_VERSIONS); do \
	 perl Makefile.PL RTHOME=/usr/share/request-tracker$$ver INSTALLDIRS=vendor; \
	 mv Makefile Makefile$$ver; \
	done

override_dh_auto_build:

override_dh_auto_test:

override_dh_auto_install:
	for ver in $(RT_VERSIONS); do \
	 ln -sf Makefile$$ver Makefile; \
	 export PERL_INSTALL_ROOT=$(CURDIR)/debian/rt$$ver-extension-calendar; \
	 make install; \
        done

override_dh_auto_clean:
	dh_auto_clean
	rm -rf MYMETA.yml Makefile4