mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
- Other iSCSI-SCST user space fixes, improvements and cleanups. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@667 d57e44dd-8a1f-0410-8b47-8ef2f437770f
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
#
|
|
# Makefile for user space only part of iSCSI-SCST
|
|
#
|
|
# Note! Dependencies are done automagically by 'make dep', which also
|
|
# removes any old dependencies. DON'T put your own dependencies here
|
|
# unless it's something special (not a .c file).
|
|
|
|
SUBDIRS := $(shell pwd)
|
|
|
|
all: include/iscsi_scst_itf_ver.h progs
|
|
|
|
progs:
|
|
$(MAKE) -C usr
|
|
|
|
include/iscsi_scst_itf_ver.h: include/iscsi_scst.h
|
|
echo "/* Autogenerated, don't edit */" >include/iscsi_scst_itf_ver.h
|
|
echo "" >>include/iscsi_scst_itf_ver.h
|
|
echo -n "#define ISCSI_SCST_INTERFACE_VERSION " >>include/iscsi_scst_itf_ver.h
|
|
echo "\"`sha1sum include/iscsi_scst.h|awk '{printf $$1}'`\"" >>include/iscsi_scst_itf_ver.h
|
|
|
|
install: all
|
|
@install -vD usr/iscsi-scstd $(DISTDIR)/usr/local/sbin/iscsi-scstd
|
|
@install -vD usr/iscsi-scst-adm $(DISTDIR)/usr/local/sbin/iscsi-scst-adm
|
|
if [ -f /etc/debian_version ]; then \
|
|
install -vD -m 755 etc/initd/initd.debian $(DISTDIR)/etc/init.d/iscsi-scst; \
|
|
elif [ -f /etc/redhat-release ]; then \
|
|
install -vD -m 755 etc/initd/initd.redhat $(DISTDIR)/etc/init.d/iscsi-scst; \
|
|
elif [ -f /etc/gentoo-release ]; then \
|
|
install -vD -m 755 etc/initd/initd.gentoo $(DISTDIR)/etc/init.d/iscsi-scst; \
|
|
elif [ -f /etc/slackware-version ]; then \
|
|
install -vD -m 755 etc/initd/initd $(DISTDIR)/etc/rc.d/iscsi-scst; \
|
|
else \
|
|
install -vD -m 755 etc/initd/initd $(DISTDIR)/etc/init.d/iscsi-scst; \
|
|
fi
|
|
|
|
clean:
|
|
$(MAKE) -C usr clean
|
|
rm -f include/iscsi_scst_itf_ver.h
|
|
|
|
extraclean: clean
|
|
|
|
.PHONY: all progs install clean extraclean
|