fence-virt/Makefile.in
Lon Hohberger 9522be50d9 Add systemd unit file and generation
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 14:05:37 -05:00

45 lines
1.2 KiB
Makefile

###############################################################################
###############################################################################
##
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
all: fence_virtd.service
make -C config
make -C common
make -C client
make -C server
install:
make -C config install
make -C client install
make -C server install
make -C man install
clean:
make -C config clean
make -C common clean
make -C client clean
make -C server clean
rm -f fence_virtd.service
maintainer-clean:
make clean
git clean -df
fence_virtd.service: fence_virtd.service.in
# Expand macros and add to unit file
SBINDIR="@sbindir@"; \
SCDIR="@sysconfdir@"; \
cat $^ > $@ ; \
echo "EnvironmentFile=-$$SCDIR/sysconfig/fence_virtd" >> $@ ;\
echo "ExecStart=$$SBINDIR/fence_virtd \$$FENCE_VIRTD_ARGS" >> $@