]> granicus.if.org Git - linux-pam/blobdiff - Makefile
Relevant BUGIDs:
[linux-pam] / Makefile
index 47c7bd394b48191ffe4afe261d85f63495375f73..562802d3c67e848e5bc60ab62005cabdf7f4e27d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,14 @@ ifeq ($(shell test \! -f Make.Rules || echo yes),yes)
     include Make.Rules
 endif
 
-THINGSTOMAKE = modules libpam libpamc libpam_misc doc examples
+THINGSTOMAKE = libpam libpamc libpam_misc modules doc examples
 
 all: $(THINGSTOMAKE)
 
+ # Let's get a dynamic libpam.so first
+ bootstrap-libpam: _pam_aconf.h prep
+       $(MAKE) -C libpam bootstrap-libpam
+
 prep:
        rm -f security
        ln -sf . security
@@ -37,10 +41,8 @@ maintainer-clean: distclean
 
 # NB _pam_aconf.h.in changes will remake this too
 Make.Rules: configure Make.Rules.in _pam_aconf.h.in
-       @echo XXX - not sure how to preserve past configure options..
-       @echo XXX - so not attempting to. Feel free to run ./configure
-       @echo XXX - by hand, with the options you want.
-       ./configure
+       ./config.status --recheck
+       ./config.status
 
 _pam_aconf.h: Make.Rules
 
@@ -52,12 +54,10 @@ configure: configure.in
        @rm -f configure
        @exit 1
 
-$(THINGSTOMAKE): _pam_aconf.h prep
+$(THINGSTOMAKE): _pam_aconf.h prep bootstrap-libpam
        $(MAKE) -C $@ all
 
 install: _pam_aconf.h prep
-       $(MKDIR) $(FAKEROOT)$(INCLUDED)
-       $(INSTALL) -m 444 security/_pam_aconf.h $(FAKEROOT)$(INCLUDED)
        for x in $(THINGSTOMAKE) ; do $(MAKE) -C $$x install ; done
 
 remove: