File: perl-binding-common.mk

package info (click to toggle)
redhat-cluster 3.1.8-1.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,608 kB
  • ctags: 6,306
  • sloc: ansic: 62,895; sh: 1,626; makefile: 1,143; perl: 765
file content (30 lines) | stat: -rw-r--r-- 515 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
27
28
29
30
TARGET += Makefile \
	  META.yml

all: $(TARGET)
	${MAKE} LD_RUN_PATH="";

%.pm: $(S)/%.pm.in
	cat $< | \
	sed \
		-e 's/@VERSION@/${RELEASE_VERSION}/g' \
	> $@

%.yml: $(S)/%.yml.in
	cat $< | \
	sed \
		-e 's/@VERSION@/${RELEASE_VERSION}/g' \
	> $@

Makefile: META.yml $(PMTARGET)
	perl Makefile.PL INC='$(CFLAGS)' LIBS='$(LDFLAGS)' INSTALLDIRS=vendor

install:
	${MAKE} -f Makefile install

uninstall:
	echo uninstall target not supported yet

clean:
	-${MAKE} -f Makefile clean
	rm -f $(TARGET) Makefile.old *.d