File: rules

package info (click to toggle)
rt-extension-jsgantt 1.03-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 356 kB
  • sloc: perl: 2,874; makefile: 21
file content (29 lines) | stat: -rwxr-xr-x 733 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 INSTALLDIRS=vendor; \
	 mv Makefile Makefile$$ver; \
	done

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-jsgantt; \
	 make install; \
	done
	chmod -R -x $(CURDIR)/debian/rt4-extension-jsgantt/usr/share/request-tracker4/plugins/RT-Extension-JSGantt/html/NoAuth/*/*
	chmod -R -x $(CURDIR)/debian/rt4-extension-jsgantt/usr/share/request-tracker4/plugins/RT-Extension-JSGantt/static/*/*

override_dh_auto_clean:
	dh_auto_clean
	rm -rf Makefile4 MYMETA.yml