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 36 37 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
include /usr/share/quilt/quilt.make
PACKAGE = $(shell dh_listpackages)
PERL ?= /usr/bin/perl
TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp: fix-scripts-stamp $(QUILT_STAMPFN)
dh build
touch $@
# remove the .pl from script names and fix their shebang lines
SCRIPTS=bin/SOAPsh bin/XMLRPCsh bin/stubmaker
fix-scripts: fix-scripts-stamp
fix-scripts-stamp: $(SCRIPTS)
touch $@
bin/%: bin/%.pl
echo '#!/usr/bin/perl' > $@
# fix the script names inside them too
sed '1d; s,$(notdir $@)\.pl,$(notdir $@),g' < $< >> $@
clean: unpatch
dh $@
$(RM) -f $(SCRIPTS)
install: install-stamp
install-stamp: build-stamp
dh install --until installexamples
chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/COM/*.bat
dh install --after installexamples
touch $@
binary-arch:
# We have nothing to do here for an architecture-independent package
binary-indep: install
dh $@
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary fix-scripts install
|