Fixed wrong re-generation of 'config-paths.h' file
[wmaker-crm.git] / util / Makefile.am
blob43fd9883a58b056bdc9787d816ed9a9f1be2bcf1
1 SUBDIRS = po
3 AUTOMAKE_OPTIONS =
5 pkgdatadir  = $(datadir)/@PACKAGE@
7 bin_PROGRAMS = wxcopy wxpaste wdwrite wdread getstyle setstyle convertfonts \
8         seticons geticonset wmsetbg wmagnify wmgenmenu wmmenugen
10 bin_SCRIPTS = wmaker.inst wm-oldmenu2new wkdemenu.pl
12 EXTRA_DIST = wmaker.inst.in bughint wm-oldmenu2new directjpeg.c wkdemenu.pl
14 AM_CPPFLAGS = -DLOCALEDIR=\"$(NLSDIR)\"
16 INCLUDES = $(DFLAGS) -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib \
17         @HEADER_SEARCH_PATH@ \
18         -DETCDIR=\"sysconfdir\" -DDATADIR=\"pkgdatadir\"
20 liblist= @LIBRARY_SEARCH_PATH@ @INTLIBS@
22 wdwrite_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
24 wdread_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
26 wxcopy_LDADD = @XLFLAGS@ @XLIBS@ 
28 wxpaste_LDADD = @XLFLAGS@ @XLIBS@
30 getstyle_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
32 getstyle_SOURCES = getstyle.c fontconv.c
34 setstyle_LDADD = \
35         $(top_builddir)/WINGs/libWUtil.la \
36         @XLFLAGS@ @XLIBS@ $(liblist)
38 setstyle_SOURCES = setstyle.c fontconv.c
40 convertfonts_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
42 convertfonts_SOURCES = convertfonts.c fontconv.c
44 seticons_LDADD= $(top_builddir)/WINGs/libWUtil.la $(liblist)
46 geticonset_LDADD= $(top_builddir)/WINGs/libWUtil.la $(liblist)
48 wmagnify_LDADD = \
49         $(top_builddir)/WINGs/libWINGs.la \
50         $(top_builddir)/WINGs/libWUtil.la \
51         $(top_builddir)/wrlib/libwraster.la \
52         @XLFLAGS@ @XLIBS@ @INTLIBS@
54 wmsetbg_LDADD = \
55         $(top_builddir)/WINGs/libWINGs.la \
56         $(top_builddir)/WINGs/libWUtil.la \
57         $(top_builddir)/wrlib/libwraster.la \
58         @XLFLAGS@ @LIBXINERAMA@ @XLIBS@ @INTLIBS@
60 wmgenmenu_LDADD = \
61         $(top_builddir)/WINGs/libWUtil.la \
62         @INTLIBS@
64 wmgenmenu_SOURCES = wmgenmenu.c wmgenmenu.h
66 wmmenugen_LDADD = \
67         $(top_builddir)/WINGs/libWUtil.la \
68         @INTLIBS@
70 wmmenugen_SOURCES = wmmenugen.c wmmenugen.h wmmenugen_misc.c \
71         wmmenugen_parse_wmconfig.c \
72         wmmenugen_parse_xdg.c
74 CLEANFILES = wmaker.inst
76 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
77         -rm -f wmaker.inst
78         sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
79                 -e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \
80                 -e "s|#version#|$(VERSION)|" \
81                 -e "s|#bindir#|$(bindir)|" \
82                         $(srcdir)/wmaker.inst.in >wmaker.inst
84         chmod 755 wmaker.inst
85