# # Makefile.in for Lodju. The configure script will create the Makefile # from this file. # SHELL = /bin/sh srcdir = . prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin datadir = ${prefix}/share mandir = ${prefix}/man CC = cc CFLAGS=-fno-common -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/gdk-pixbuf-1.0 -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I $(srcdir) -DHAVE_LIBINTL_H=1 \ -DLODJU_GLADE=\"$(datadir)/lodju/lodju.glade\",\"$(datadir)/lodju.glade\" \ -DLODJU_LOCALE_DIR=\"$(datadir)/locale\" LDFLAGS= LIBS=-fno-common -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/gdk-pixbuf-1.0 -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lgtk-12 -lgdk-12 -lgmodule-12 -lglib-12 -lintl -lXi -lXext -lX11 -lm -L/usr/X11R6/lib -lgdk_pixbuf -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm XGETTEXT = xgettext XGETTEXTFLAGS = --keyword=_ --keyword=N_ -D $(srcdir) ############################################################################ # You probably don't need to touch anything below this, if you're just # compiling and installing the software. ############################################################################ unitsources = imagedb.c pixbuf.c utils.c image_list.c folder_tree.c meta.c \ toplevel.c cfg.c unitobjects = $(unitsources:.c=.o) unitlabels = glade_labels.h imagedb.c folder_tree.c lodju.c pixbuf.c all: lodju unit_test check: all ./unit_test lodju: lodju.o $(unitobjects) lodju.pot $(CC) $(LDFLAGS) -o lodju lodju.o $(unitobjects) $(LIBS) unit_test: unit_test.o $(unitobjects) $(CC) $(LDFLAGS) -o unit_test unit_test.o $(unitobjects) $(LIBS) lodju.o unit_test.o $(unitobjects): lodju.h imagedb.h pixbuf.h lodju.pot: $(unitlabels) $(XGETTEXT) $(XGETTEXTFLAGS) -o lodju.pot $(unitlabels) for po in $(srcdir)/po/*.po; \ do \ lang=`basename $$po .po`; \ destdir=locale/$$lang/LC_MESSAGES; \ install -d $$destdir; \ msgfmt -o "$$destdir/lodju.mo" $$po; \ done install: lodju install -d $(bindir) install lodju $(bindir) install $(srcdir)/lodju-create $(bindir) install lodju-gallery $(bindir) install -d $(datadir) install -d $(datadir)/lodju install -m 0644 $(srcdir)/lodju.glade $(datadir)/lodju install -m 0644 $(srcdir)/xsl/*.css $(datadir)/lodju install -m 0644 $(srcdir)/xsl/*.xsl $(datadir)/lodju install -m 0644 $(srcdir)/xsl/*.gif $(datadir)/lodju cp -r locale/* $(datadir)/locale chmod -R go=u,go-w $(datadir)/locale install -d $(datadir)/lodju/graphics install -m 0644 $(srcdir)/xsl/graphics/*.png $(datadir)/lodju/graphics install -d $(datadir)/lodju/style install -m 0644 $(srcdir)/xsl/style/*.css $(datadir)/lodju/style install -d $(mandir)/man1 install -m 0644 $(srcdir)/lodju*.1 $(mandir)/man1 gzip -9f $(mandir)/man1/lodju*.1 # # Document building. # docbooks = $(wildcard *.docbook) html = $(docbooks:.docbook=.html) ps = $(docbooks:.docbook=.ps) pdf = $(docbooks:.docbook=.pdf) formats = $(pdf) $(ps) $(html) HTML_DSL = /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl TEX_DSL = /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl XML_DECL = /usr/lib/sgml/declaration/xml.dcl doc: $(formats) $(formats): $(docbooks) .SUFFIXES: $(SUFFIXES) .docbook .ps .pdf .tex .html .docbook.html: jade -V nochunks -t sgml -d $(HTML_DSL) $(XML_DECL) $< > $@ .docbook.tex: jade -o $*.tex -t tex -d $(TEX_DSL) $(XML_DECL) $< .tex.ps: jadetex $< >/dev/null jadetex $< >/dev/null jadetex $< >/dev/null dvips -q -o $@ $*.dvi .tex.pdf: pdfjadetex $< >/dev/null pdfjadetex $< >/dev/null pdfjadetex $< >/dev/null clean: rm -f core lodju unit_test *.o *.bak rm -rf lodju.pot locale rm -f $(formats) *.aux *.dvi *.log *.out distclean: clean rm -f Makefile lodju-gallery config.status