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.
 
 
 
 
 

39 lines
1.2 KiB

  1. PREFIX := /usr
  2. PROGRAMS := scripts/* tap/*
  3. build:
  4. tests/increase-version-number
  5. install: $(scripts)
  6. mkdir -p $(DESTDIR)/$(PREFIX)/bin/
  7. for prog in $(PROGRAMS); do \
  8. install -m 0755 $$prog $(DESTDIR)/$(PREFIX)/bin; \
  9. done
  10. mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
  11. install -m 0664 examples/* $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
  12. mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/examples/devuan
  13. install -m 0664 devuan/* $(DESTDIR)/usr/share/jenkins-debian-glue/examples/devuan/
  14. mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
  15. install -m 0775 pbuilder-hookdir/* $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
  16. uninstall: $(scripts)
  17. for prog in $(PROGRAMS); do \
  18. rm $(DESTDIR)/$(PREFIX)/bin/$${prog#scripts} ; \
  19. done
  20. rm -rf $(DESTDIR)/usr/share/jenkins-debian-glue/examples
  21. rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/jenkins-debian-glue
  22. deploy:
  23. fab all
  24. clean:
  25. rm -f fabfile.pyc
  26. # avoid recursion via debian/rules clean, so manually rm:
  27. rm -f debian/files debian/jenkins-debian-glue.debhelper.log
  28. rm -f debian/jenkins-debian-glue.substvars
  29. rm -rf debian/jenkins-debian-glue/
  30. .PHONY: build install