File: Makefile

package info (click to toggle)
lxr 0.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 176 kB
  • ctags: 60
  • sloc: perl: 670; makefile: 66
file content (35 lines) | stat: -rw-r--r-- 1,010 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
30
31
32
33
34
35

# Makefile for installation and configuration of LXR

DESTDIR=

# The location of your perl5 binary
PERLBIN=/usr/bin/perl
# LXR will be installed here
INSTALLPREFIX=$(DESTDIR)/var/lib/lxr

# End of configuration parameters
CGISCRIPTS=find ident search diff source
PERLMODULES=SimpleParse.pm Common.pm Config.pm

config: $(CGISCRIPTS) $(PERLMODULES) genxref

$(CGISCRIPTS) genxref: %: %.in
	sed s%@perlbin@%$(PERLBIN)% < $< > $@


install: config genxref
	install --directory $(INSTALLPREFIX)/http
	install --directory $(INSTALLPREFIX)/http/lib
	install --directory $(INSTALLPREFIX)/http/lib/LXR
	install --directory $(INSTALLPREFIX)/bin
	install --directory $(INSTALLPREFIX)/source
	install --mode 755 $(CGISCRIPTS) $(INSTALLPREFIX)/http/
	install --mode 750 genxref $(INSTALLPREFIX)/bin/
	install --mode 644 Common.pm Config.pm $(INSTALLPREFIX)/http/lib/LXR
	install --mode 644 SimpleParse.pm $(INSTALLPREFIX)/http/lib/
	install --mode 644 http/* $(INSTALLPREFIX)/http/

clean:
	rm -f $(CGISCRIPTS) genxref