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.

76 line
3.1KB

  1. SHELL:=/bin/bash
  2. UBUNTU_VERSION ?= 2404
  3. CODENAME ?= noble
  4. VERSION:=1.0.0
  5. build: $(CODENAME)/cppse-inotify-cpp_$(VERSION)_amd64.deb
  6. $(CODENAME)/cppse-inotify-cpp_$(VERSION)_amd64.deb:
  7. mkdir -p $(CODENAME)
  8. make ubuntu$(UBUNTU_VERSION)
  9. ubuntu2004:
  10. # check out revision that is master at the time of writing
  11. git clone https://github.com/erikzenker/inotify-cpp || true
  12. pushd inotify-cpp && \
  13. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  14. popd && \
  15. bash ../ubuntu2004.sh make impl
  16. make package-ubuntu2004
  17. ubuntu2204:
  18. # check out revision that is master at the time of writing
  19. git clone https://github.com/erikzenker/inotify-cpp || true
  20. pushd inotify-cpp && \
  21. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  22. popd && \
  23. bash ../ubuntu2204.sh make impl
  24. make package-ubuntu2204
  25. ubuntu$(UBUNTU_VERSION):
  26. # check out revision that is master at the time of writing
  27. git clone https://github.com/erikzenker/inotify-cpp || true
  28. pushd inotify-cpp && \
  29. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  30. popd && \
  31. bash ../ubuntu$(UBUNTU_VERSION).sh make impl
  32. make package-ubuntu$(UBUNTU_VERSION)
  33. impl:
  34. dpkg -i ../boost/cppse-boost_*.deb
  35. pushd inotify-cpp && \
  36. cmake -DCMAKE_INSTALL_PREFIX=$$PWD/../inotify-cpp_out -DBUILD_EXAMPLE=OFF -DBUILD_TEST=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DUSE_BOOST_FILESYSTEM=OFF -DBoost_USE_STATIC_LIBS=ON -DBOOST_ROOT="/opt/cppse/build/boost/" -DBoost_INCLUDE_DIR="/opt/cppse/build/boost/include" . && \
  37. make -j8 && \
  38. make install
  39. package-ubuntu2004:
  40. rm -rf out
  41. mkdir -p out/opt/cppse/build/inotify-cpp
  42. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  43. rm -rf cppse_inotify-cpp_*_amd64.deb
  44. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -f -v 1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  45. package-ubuntu2204:
  46. rm -rf out
  47. mkdir -p out/opt/cppse/build/inotify-cpp
  48. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  49. rm -rf cppse_inotify-cpp_*_amd64.deb
  50. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -f -v 1.1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  51. package-ubuntu$(UBUNTU_VERSION):
  52. rm -rf out
  53. mkdir -p out/opt/cppse/build/inotify-cpp
  54. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  55. rm -rf $(CODENAME)/cppse-inotify-cpp_*_amd64.deb
  56. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -s dir -t deb -n cppse-inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  57. cp -prv cppse-inotify-cpp_*_amd64.deb $(CODENAME)/
  58. clean:
  59. sudo rm -rf inotify-cpp*
  60. sudo rm -rf out
  61. shell:
  62. FLAGS="-i --privileged" bash ../ubuntu$(UBUNTU_VERSION).sh /bin/bash