Makefile 942 B

12345678910111213141516171819202122232425262728293031323334353637
  1. APP=gnusocial
  2. ARCH_TYPE='all'
  3. GNUSOCIAL_VERSION?=3.0.0dev
  4. DESTDIR?=${PWD}/debian/${APP}
  5. # all:
  6. # debug:
  7. # sync:
  8. # ./upstream-to-debian.sh
  9. source:
  10. cd ../.. && tar cvf dist/${APP}_${GNUSOCIAL_VERSION}.orig.tar --transform "s,^,${APP}-${GNUSOCIAL_VERSION}/," bin src config extlib public vendor plugins components templates social.yaml translations
  11. gzip -f9n ../${APP}_${GNUSOCIAL_VERSION}.orig.tar
  12. install:
  13. mkdir -m 755 -p ${DESTDIR}/var/www/${APP}
  14. cp -r * ${DESTDIR}/var/www/${APP}
  15. uninstall:
  16. rm -rf ${DESTDIR}/var/www/${APP}
  17. if [ -L /etc/nginx/vhosts/${APP} -or -f /etc/nginx/vhosts/${APP} ]; then
  18. rm -f /etc/nginx/vhosts/${APP};
  19. fi
  20. if [ -d /etc/apache2 ]; then
  21. a2dissite ${APP};
  22. rm /etc/apache2/sites-available/${APP};
  23. fi
  24. if [ -d /var/www/${APP} ]; then
  25. rm -r /var/www/${APP};
  26. fi
  27. clean:
  28. rm -rf tmp/ src/ pkg/
  29. clean-source:
  30. rm -rf ../${APP}_${GNUSOCIAL_VERSION}.orig.tar ../${APP}_${GNUSOCIAL_VERSION}.orig.tar.gz