modified version of jenkins debian glue (https://github.com/mika/jenkins-debian-glue) for devuan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
1.0 KiB

PREFIX := /usr
PROGRAMS := scripts/* tap/*
build:
tests/increase-version-number
install: $(scripts)
mkdir -p $(DESTDIR)/$(PREFIX)/bin/
for prog in $(PROGRAMS); do \
install -m 0755 $$prog $(DESTDIR)/$(PREFIX)/bin; \
done
mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
install -m 0664 examples/* $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
install -m 0775 pbuilder-hookdir/* $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
uninstall: $(scripts)
for prog in $(PROGRAMS); do \
rm $(DESTDIR)/$(PREFIX)/bin/$${prog#scripts} ; \
done
rm -rf $(DESTDIR)/usr/share/jenkins-debian-glue/examples
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/jenkins-debian-glue
deploy:
fab all
clean:
rm -f fabfile.pyc
# avoid recursion via debian/rules clean, so manually rm:
rm -f debian/files debian/jenkins-debian-glue.debhelper.log
rm -f debian/jenkins-debian-glue.substvars
rm -rf debian/jenkins-debian-glue/
.PHONY: build install