bindir = @bindir@
libdir = @libdir@
etcdir = @sysconfdir@
+EXEEXT = @EXEEXT@
CC = @CC@
CFLAGS = @CFLAGS@
install-cmds:
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for cmd in $(CMDS); do \
- $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) $$cmd$(EXEEXT) $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
done
# install links
# install commands with special installation needs (thus no $(SCMDS) use here)
install-scmds:
if test x$(SETGID_MAIL) != x; then \
- $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
else \
- $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
fi
uninstall:
for cmd in $(CMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
done
for lcmd in $(LCMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$lcmd; \
+ rm -f $(DESTDIR)$(bindir)/$$lcmd$(EXEEXT); \
done
for misc in $(MISC); do \
- rm -f $(DESTDIR)$(libdir)/$$misc; \
+ rm -f $(DESTDIR)$(libdir)/$$misc$(EXEEXT); \
done
for cmd in $(SCMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
done
# ========== DEPENDENCIES FOR CLEANUP ==========