PROGRAMS = \
	make_xftmpl$(EXEEXT)

MANPAGES = \
	winemaker.de.UTF-8.man.in \
	winemaker.fr.UTF-8.man.in \
	winemaker.man.in

C_SRCS = \
	make_xftmpl.c \
	makedep.c

IN_SRCS = \
	wineapploader.in

all: wineapploader

make_xftmpl$(EXEEXT): make_xftmpl.o
	$(CC) $(CFLAGS) -o $@ make_xftmpl.o $(LIBPORT) $(LDFLAGS)

.PHONY: install install-lib install-dev uninstall

install install-lib::
	$(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop

install install-dev:: install-man-pages
	$(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker

uninstall::
	$(RM) $(DESTDIR)$(datadir)/applications/wine.desktop $(DESTDIR)$(bindir)/winemaker