X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=Makefile.am;h=1e7761fbf50c3e2d2b4ef0882be53227baec024a;hb=83014f96551132c825ff52d94330e366148f20cb;hp=7aa0a0a655189028c5ae14afe0a3838f8213944d;hpb=3baa2479508cae11dd212b9a5489b53345c3337f;p=projects%2Frc-scripts.git diff --git a/Makefile.am b/Makefile.am index 7aa0a0a6..1e7761fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,36 +1,61 @@ # -# $Id$ # -SUBDIRS = src ppp isapnp sysconfig rc.d doc man po +SUBDIRS = src lib ppp isapnp sysconfig rc.d doc man po sysconf_DATA = \ adjtime \ inittab \ modules \ + crypttab \ sysctl.conf +firmware_SCRIPTS = \ + firmware-loader.sh + profiledir = @sysconfdir@/profile.d profile_DATA = \ lang.sh \ lang.csh -bin_SCRIPTS = run-parts +bin_SCRIPTS = run-parts.sh sbin_SCRIPTS = \ setsysfont \ hwprofile \ service +AM_DISTCHECK_CONFIGURE_FLAGS = \ + --prefix=/usr \ + --verbose + EXTRA_DIST = \ $(sysconf_DATA) \ $(profile_DATA) \ + $(firmware_SCRIPTS) \ $(sbin_SCRIPTS) \ - $(bin_SCRIPTS) \ - rc-scripts.spec + $(bin_SCRIPTS) + +DISTCLEANFILES = \ + ChangeLog + +ChangeLog: + $(top_srcdir)/changelog.sh $(top_builddir) + +dist-hook: + rm -f $(top_builddir)/ChangeLog + $(MAKE) -C $(top_builddir) ChangeLog + cp -pf $(top_builddir)/ChangeLog $(top_distdir)/ChangeLog + +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 - rpmbin=`LANG=C LC_ALL=C rpm -ta 2>&1 | grep -q "unknown option" && echo rpmbuild || echo rpm` ; \ + rpmbin=`LC_ALL=C rpm -ta 2>&1 | grep -q "unknown option" && echo rpmbuild || echo rpm` ; \ $$rpmbin -ta --clean --rmsource $(PACKAGE)-$(VERSION).tar.gz