#
-# $Id: Makefile.am,v 1.5 1999/08/07 10:16:13 wiget Exp $
#
-SUBDIRS = src ppp sysconfig rc.d doc po
+SUBDIRS = src lib ppp isapnp sysconfig rc.d doc man po init
sysconf_DATA = \
adjtime \
- inittab
+ inittab \
+ modules \
+ crypttab \
+ sysctl.conf
+
+firmware_SCRIPTS = \
+ firmware-loader.sh
profiledir = @sysconfdir@/profile.d
profile_DATA = \
lang.sh \
lang.csh
-
-sbin_SCRIPTS = setsysfont
+
+bin_SCRIPTS = run-parts.sh
+sbin_SCRIPTS = \
+ setsysfont \
+ hwprofile \
+ service
EXTRA_DIST = \
$(sysconf_DATA) \
$(profile_DATA) \
+ $(firmware_SCRIPTS) \
$(sbin_SCRIPTS) \
- rc-scripts.spec
+ $(bin_SCRIPTS)
+
+install-data-hook:
+ install -d $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)
+ [ -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache ] || touch $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache
+
+uninstall-hook:
+ [ -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache ] && rm -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache
# make rpms
rpm: $(PACKAGE).spec
$(MAKE) dist
- rpm -ta --clean --rmsource $(PACKAGE)-$(VERSION).tar.gz
+ rpmbin=`LC_ALL=C rpm -ta 2>&1 | grep -q "unknown option" && echo rpmbuild || echo rpm` ; \
+ $$rpmbin -ta --clean --rmsource $(PACKAGE)-$(VERSION).tar.gz