File: Makefile

package info (click to toggle)
htag 0.0.24-2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 1,302; makefile: 20; sh: 2
file content (19 lines) | stat: -rw-r--r-- 675 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# Make sure perl is defined, but allow overriding from the command line.
PERL ?= /usr/bin/perl

pmdir := $(shell $(PERL) -MConfig -e 'if (defined($$Config{installvendorlib})) { print $$Config{installvendorlib} } else { print $$Config{installprivlib} }')

install:
	mkdir -p debian/tmp/usr/bin
	cp htag.pl debian/tmp/usr/bin/htag
	mkdir -p debian/tmp/${pmdir}
	cp HtagPlugin/HtagPlugin.pm debian/tmp/${pmdir}
	mkdir -p debian/tmp/usr/share/htag/plugins
	cp -a plugins/* debian/tmp/usr/share/htag/plugins
	chmod 755 debian/tmp/usr/share/htag/plugins/* # for lintian
	cp -a docs/Changelog.htag docs/changelog

clean:
	rm -rf htag.1 debian/tmp docs/changelog