Files
modules/modulefiles/Makefile.am
rkowen aa4b5c3229 * Reworked every configure-based file
- uses automake to generate most of the Makefile.in
  - renamed configure.in to configure.ac per autoconf
  - Versioning is optional now with a configure option
  - reworked the init scripts for versioning or not
  - eliminated acconfig.h and put templates in configure.ac
  - make install now honors the DESTDIR variable for package builds
  - honors bindir for modulecmd location
   (but the init scripts are only correct if no versioning)
* Collected the usage info and now it can be displayed with
  the --help or -H option (same as help)
* --version now gives most of the optional configure parameters
  for easy debugging of problems
* Fixed bootstrap to just source the appropriate init script
2002-06-14 21:57:03 +00:00

71 lines
2.0 KiB
Makefile

###########################################################################
##
## File: modulefiles/Makefile.am
## Versions: $Id: Makefile.am,v 1.1 2002/06/14 21:57:03 rkowen Exp $
## Created: 2002/06/14
##
###########################################################################
AUTOMAKE_OPTIONS=foreign no-installinfo
EXTRA_SCRIPTS= \
dot module-cvs module-info modules null use.own version
BASEMODULES=${EXTRA_SCRIPTS}
all: ${BASEMODULES}
install-data-local : install-basemodules
install-basemodules : $(BASEMODULES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(prefix)/modulefiles
@list='$(BASEMODULES)'; for p in $$list; do \
if test -f $$p \
; then \
echo " $(INSTALL_DATA_ENV) $(INSTALL_DATA) $$p $(DESTDIR)$(prefix)/modulefiles/$$p"; \
$(INSTALL_DATA_ENV) $(INSTALL_DATA) $$p $(DESTDIR)$(prefix)/modulefiles/$$p; \
else :; fi; \
done
uninstall-local : uninstall-basemodules
uninstall-basemodules :
@$(NORMAL_UNINSTALL)
@if test @WANTS_VERSIONING@ -eq 1 ; then \
list='$(BASEMODULES)'; for p in $$list; do \
echo " rm -f $(DESTDIR)$(prefix)/modulefiles/$$p"; \
rm -f $(DESTDIR)$(prefix)/modulefiles/$$p; \
done; \
else \
echo "*** BASE MODULES are not uninstalled from $(DESTDIR)$(prefix)/modulefiles ***"; \
echo "*** Do This Yourself If you really want to ***"; \
fi
##dot : dot.in ../config.status
## (cd ..; config.status modulefiles/dot)
##
##module-cvs : module-cvs.in ../config.status
## (cd ..; config.status modulefiles/module-cvs)
##
##module-info : module-info.in ../config.status
## (cd ..; config.status modulefiles/module-info)
##
##modules : modules.in ../config.status
## (cd ..; config.status modulefiles/modules)
##
##null : null.in ../config.status
## (cd ..; config.status modulefiles/null)
##
##use.own : use.own.in ../config.status
## (cd ..; config.status modulefiles/use.own)
##
##version : version.in ../config.status
## (cd ..; config.status modulefiles/version)
check :
clean :
rm -f ${BASEMODULES}