## $Id: Makefile-files,v 1.1 2003/11/04 22:32:40 ensc Exp $  -*- makefile -*-

## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
##  
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##  
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##  
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##  

contrib_subst_SRCS		=  contrib/make-dev.subst

contrib_pkglib_gen_SCRPTS	=  contrib/make-dev
contrib_pkglib_PROGS		=  contrib/exec-cd
#				   contrib/fileserv
contrib_pkglib_DTA		=  contrib/devs.list

contrib_exec_cd_SOURCES		=  contrib/exec-cd.c

contrib_fileserv_XSOURCES	=  src/readrights.c \
				   contrib/fileserv.c \
				   src/fmt.c \
				   src/util-io.c

initrd_sysv_SCRPTS		=  contrib/djinni-rub.sysv \
				   contrib/djinnid.sysv


contrib_pkglib_SCRPTS	=  $(contrib_pkglib_gen_SCRPTS)
contrib_XTRAS		=  $(contrib_subst_SRCS) \
			   $(initrd_sysv_SCRPTS) \
			   $(contrib_pkglib_DTA)
contrib_CLEANFILES	=  $(contrib_pkglib_gen_SCRPTS)

contrib/make-dev:	contrib/.make-dev.subst.stamp


install-sysv:		$(initrd_sysv_SCRPTS)
			$(mkinstalldirs) $(DESTDIR)$(initrddir)
			l='$^'; for i in $$l; do \
				f=$$(basename "$$i"); \
				$(INSTALL_PROGRAM) "$$i" "$(DESTDIR)$(initrddir)/$${f%%.sysv}"; \
			done
