File: Makefile

package info (click to toggle)
opalmod 0.2.2.1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: perl: 268; makefile: 24
file content (26 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
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
PREFIX=/usr/local

# This includes the install....
build:
# Generate makefiles.
	(cd OpaL/where;perl Makefile.PL INSTALLDIRS=vendor)
	(cd OpaL/read;perl Makefile.PL INSTALLDIRS=vendor)
	(cd OpaL/dir;perl Makefile.PL INSTALLDIRS=vendor)
	(cd OpaL/manipulate;perl Makefile.PL INSTALLDIRS=vendor)
	(cd OpaL/action;perl Makefile.PL INSTALLDIRS=vendor)

# Then do the real make.
	for part in where read dir manipulate action; do \
		$(MAKE) -C OpaL/$$part OPTIMIZE="-O2 -g -Wall"; \
	done

install:
	for part in where read dir manipulate action; do \
		$(MAKE) -C OpaL/$$part install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX); \
	done
	rm -f $(DESTDIR)$(prefix)/share/man/man3/.exists*

clean:
	for part in where read dir manipulate action; do \
		[ ! -f OpaL/$$part/Makefile ] || $(MAKE) -C OpaL/$$part realclean; \
	done