Makefile.am revision a966c04f
1if BUILD_SXPM 2 3bin_PROGRAMS = sxpm 4 5AM_CFLAGS = $(SXPM_CFLAGS) 6 7AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include 8 9sxpm_SOURCES = sxpm.c 10 11sxpm_LDADD = $(XPM_LIBS) $(SXPM_LIBS) $(top_builddir)/src/libXpm.la 12 13# Man page 14appmandir = $(APP_MAN_DIR) 15 16appman_PRE = sxpm.man 17appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 18 19CLEANFILES = $(appman_DATA) 20 21SED = sed 22 23# Strings to replace in man pages 24XORGRELSTRING = @PACKAGE_STRING@ 25 XORGMANNAME = X Version 11 26 27MAN_SUBSTS = \ 28 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 29 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 30 -e 's|__xservername__|Xorg|g' \ 31 -e 's|__xconfigfile__|xorg.conf|g' \ 32 -e 's|__projectroot__|$(prefix)|g' \ 33 -e 's|__apploaddir__|$(appdefaultdir)|' \ 34 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 35 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 36 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 37 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 38 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 39 40SUFFIXES = .$(APP_MAN_SUFFIX) .man 41 42.man.$(APP_MAN_SUFFIX): 43 sed $(MAN_SUBSTS) < $< > $@ 44 45if USE_GETTEXT 46noinst_DATA = sxpm.po 47 48sxpm.po: $(sxpm_SOURCES:%=$(srcdir)/%) 49 xgettext -c"L10N_Comments" -d sxpm -n $(sxpm_SOURCES:%=$(srcdir)/%) 50 51CLEANFILES += sxpm.po 52endif 53endif 54 55EXTRA_DIST = \ 56 plaid_ext.xpm \ 57 plaid_mask.xpm \ 58 plaid.xpm \ 59 sxpm.man 60