Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. PACKAGE = jwm
  2. SYSCONF = $(DESTDIR)/freon/etc
  3. MANDIR = $(DESTDIR)/freon/share/man
  4. VERSION ?= 2.2.0
  5. USE_NLS = yes
  6. all:
  7. cd src ; $(MAKE) all ; cd ..
  8. cd po ; $(MAKE) all ; cd ..
  9. install: all
  10. cd src ; $(MAKE) install ; cd ..
  11. cd po ; $(MAKE) install ; cd ..
  12. install -d -m 0755 $(SYSCONF)
  13. install -m 644 example.jwmrc $(SYSCONF)/system.jwmrc
  14. install -d -m 0755 $(MANDIR)/man1
  15. install -m 644 jwm.1 $(MANDIR)/man1/jwm.1
  16. depend:
  17. cd src ; $(MAKE) depend
  18. tarball:
  19. rm -f ../jwm-$(VERSION).tar.xz ;
  20. rm -fr ../jwm-$(VERSION) ;
  21. cp -r ../jwm ../jwm-$(VERSION) ;
  22. (cd ../jwm-$(VERSION) && $(MAKE) distclean) ;
  23. (cd .. && tar -cf jwm-$(VERSION).tar jwm-$(VERSION));
  24. rm -fr ../jwm-$(VERSION) ;
  25. (cd .. && xz jwm-$(VERSION).tar)
  26. clean:
  27. (cd src && $(MAKE) clean)
  28. (cd po && $(MAKE) clean)
  29. rm -rf doc
  30. distclean: clean
  31. rm -f *[~#] config.cache config.log config.status config.h
  32. rm -f Makefile src/Makefile jwm.1
  33. rm -fr autom4te.cache
  34. rm -f Makefile.bak src/Makefile.bak
  35. rm -fr .git .gitignore
  36. check-gettext:
  37. @if test x$(USE_NLS) != "xyes" ; then \
  38. echo "Missing gettext. Rerun configure and check for" \
  39. "'checking whether to use NLS... yes'!" ; exit 1 ; fi
  40. update-po: check-gettext
  41. @find src/ -name "*.c" -print | sort > po/POTFILES.in.2 ; \
  42. if diff po/POTFILES.in po/POTFILES.in.2 >/dev/null 2>&1 ; then \
  43. rm -f po/POTFILES.in.2 ; \
  44. else \
  45. mv po/POTFILES.in.2 po/POTFILES.in ; \
  46. fi
  47. cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
  48. update-gmo: check-gettext
  49. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  50. force-update-gmo: check-gettext
  51. touch po/*.po
  52. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  53. force-update-gmo-%: check-gettext
  54. @language=`echo $@ | sed s/force-update-gmo-//` ; \
  55. if test ! -f po/$$language.po ; then \
  56. echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
  57. touch po/$$language.po ; \
  58. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  59. .PHONY: check-gettext update-po update-gmo force-update-gmo