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.
 
 
 
 

54 lines
1.9 KiB

  1. CC = gcc
  2. LDFLAGS = -lImlib2 -lX11
  3. CFLAGS ?= -O2 -s
  4. #CFLAGS ?= -ggdb -g3 # For debugging
  5. all: xlunch entries.dsv
  6. install: xlunch
  7. mkdir -p $(DESTDIR)/etc/xlunch/
  8. mkdir -p $(DESTDIR)/usr/share/xlunch/svgicons/
  9. mkdir -p $(DESTDIR)/usr/bin/
  10. mkdir -p $(DESTDIR)/usr/share/icons/hicolor/48x48/apps
  11. mkdir -p $(DESTDIR)/usr/share/applications
  12. cp extra/ghost.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png
  13. cp docs/logo.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch.png
  14. cp xlunch $(DESTDIR)/usr/bin/
  15. cp extra/genentries $(DESTDIR)/usr/bin
  16. cp extra/updateentries $(DESTDIR)/usr/bin
  17. cp extra/genentries.desktop $(DESTDIR)/usr/share/applications/
  18. cp default.conf $(DESTDIR)/etc/xlunch/default.conf
  19. bash extra/genentries --path $(DESTDIR)/usr/share/xlunch/svgicons/ > $(DESTDIR)/etc/xlunch/entries.dsv
  20. cp -r svgicons/ $(DESTDIR)/usr/share/xlunch/ 2>/dev/null || :
  21. remove:
  22. rm -r $(DESTDIR)/etc/xlunch
  23. rm -r $(DESTDIR)/usr/share/xlunch
  24. rm $(DESTDIR)/usr/bin/xlunch
  25. rm $(DESTDIR)/usr/bin/genentries
  26. rm $(DESTDIR)/usr/bin/updateentries
  27. rm $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png
  28. rm $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch.png
  29. rm $(DESTDIR)/usr/share/applications/genentries.desktop
  30. livetest: xlunch
  31. ./extra/gentriesquick > /tmp/xlunch-tmp.dsv
  32. ./xlunch -g extra/wp.jpg -f "extra/OpenSans-Regular.ttf/10" -i /tmp/xlunch-tmp.dsv -b 140 --iconpadding 20 --textpadding 10 --paddingswap --leastmargin 10 --scroll || true
  33. rm -f /tmp/xlunch-tmp.dsv
  34. test: xlunch
  35. ./xlunch -g extra/wp.jpg -f "extra/OpenSans-Regular.ttf/10" -i extra/sample_entries.dsv -b 140 --outputonly --iconpadding 20 --textpadding 10 --paddingswap --leastmargin 10 --highlight extra/highlight.png
  36. xlunch: xlunch.c
  37. $(CC) xlunch.c -o xlunch $(LDFLAGS) $(CFLAGS)
  38. entries.dsv:
  39. bash extra/genentries > entries.dsv
  40. clean:
  41. rm -f xlunch
  42. rm -f entries.dsv
  43. release:
  44. bash extra/makerelease