# $HeadURL$ $LastChangedRevision$ # # Load ade.mk # include ./ade.mk # # Tell ade.mk where not to recurse. # NOMAKE_DIRS = unused # So adeinst can be found and adeinst can find ade-config ... install: export PATH = ../bin:$(shell echo $$PATH) # ... but we still have a problem. adeinst calls # '$(ade-config ade_include_prefix)/ADE.sh' but that is going to # report the *target* where ADE.sh is going to be installed # but where it isn't *yet* installed. So ... we could change # INSTALLPREFIX to point to ../include but then *this Makefile* # will try to install $(INCLUDE_FILES) to ../include and that # (a) is not what we want, (b) will fail because source and # target are the same. The trick is then to chance INCLUDEPREFIX # for the running of adeinst but not the running of the Makefile # itself. He we do this: install: INSTALL_CMD = ADE_INCLUDE_PREFIX=. adeinst # # What do we have? # TXT_FILES = ade.mk ade.man $(wildcard *.pm) $(wildcard *.sh) # # Where do we want it? # INCLUDE_FILES = $(TXT_FILES)