File: rules

package info (click to toggle)
php-pinba 1.1.2-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 332 kB
  • sloc: ansic: 4,200; xml: 103; makefile: 12
file content (15 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
include /usr/share/dh-php/pkg-pecl.mk

$(CONFIGURE_TARGETS): configure-%-stamp: prepare-%-stamp
prepare-%-stamp:
	mkdir -p $(PECL_SOURCE_$*)
	cp -a config.m4 CREDITS NEWS README *.h *.c *.proto tests $(PECL_SOURCE_$*)
	cd $(PECL_SOURCE_$*) && protoc-c --c_out=. pinba.proto
	mv $(PECL_SOURCE_$*)/pinba.pb-c.c $(PECL_SOURCE_$*)/pinba-pb-c.c
	touch prepare-$*-stamp

$(CLEAN_TARGETS): clean-%-stamp: unprepare-%-stamp
unprepare-%-stamp:
	-rm prepare-$*-stamp
	-rm -rf $(PECL_SOURCE_$*)