File: rules

package info (click to toggle)
php-pinba 1.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 396 kB
  • sloc: ansic: 4,687; xml: 102; makefile: 12
file content (15 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download
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_$*)