Blame bin_install/Makefile.am

Packit c22fc9
# Makefile.am
Packit c22fc9
#
Packit c22fc9
# Keepalived OpenSource project.
Packit c22fc9
#
Packit c22fc9
# Copyright (C) 2001-2016 Alexandre Cassen, <acassen@gmail.com>
Packit c22fc9
Packit c22fc9
.PHONY:	all debug profile
Packit c22fc9
Packit c22fc9
all debug profile: $(top_builddir)/bin/keepalived $(top_builddir)/bin/genhash
Packit c22fc9
Packit c22fc9
$(top_builddir)/bin/keepalived: $(top_builddir)/keepalived/keepalived
Packit c22fc9
	@$(MKDIR_P) $(top_builddir)/bin
Packit c22fc9
	@(if test -f $(top_builddir)/keepalived/keepalived; then \
Packit c22fc9
		if test -z "$(DEBUG_LDFLAGS)$(DEBUG_CFLAGS)$(DEBUG_CPPFLAGS)"; then \
Packit c22fc9
			@STRIP@ -o $(top_builddir)/bin/keepalived $(top_builddir)/keepalived/keepalived; \
Packit c22fc9
		else \
Packit c22fc9
			cp -p $(top_builddir)/keepalived/keepalived $(top_builddir)/bin; \
Packit c22fc9
		fi; \
Packit c22fc9
	else \
Packit c22fc9
		rm -f $(top_builddir)/bin/keepalived; \
Packit c22fc9
	fi)
Packit c22fc9
Packit c22fc9
$(top_builddir)/bin/genhash: $(top_builddir)/genhash/genhash
Packit c22fc9
	@$(MKDIR_P) $(top_builddir)/bin
Packit c22fc9
	@(if test -f $(top_builddir)/genhash/genhash; then \
Packit c22fc9
		if test -z "$(DEBUG_LDFLAGS)$(DEBUG_CFLAGS)$(DEBUG_CPPFLAGS)"; then \
Packit c22fc9
			@STRIP@ -o $(top_builddir)/bin/genhash $(top_builddir)/genhash/genhash; \
Packit c22fc9
		else \
Packit c22fc9
			cp -p $(top_builddir)/genhash/genhash $(top_builddir)/bin; \
Packit c22fc9
		fi; \
Packit c22fc9
	else \
Packit c22fc9
		rm -f $(top_builddir)/bin/genhash; \
Packit c22fc9
	fi)
Packit c22fc9
Packit c22fc9
clean-local:
Packit c22fc9
	rm -f $(top_builddir)/bin/keepalived $(top_builddir)/bin/genhash