include ./Makefile.common name = ossim version = 1.1.2cvs #bindir = $(prefix)/bin #datadir = $(prefix) #docdir = $(datadir)/doc sysconfdir = $(prefix)/etc OSSIM_ROOT = . default: (cd src; $(MAKE)) (cd scripts; $(MAKE)) install: ($(RM) $(TOP)/ossim-uninstall) ($(INSTALL) -d \ $(INST_BIN) \ $(INST_LIB) \ $(INST_SHARE)/$(name)-$(version)\ $(INST_DOCS)/$(name)-$(version) \ $(sysconfdir)/$(name)/templates) ($(INSTALL_PROGRAM) src/apps/ossim-config $(INST_BIN)) ($(INSTALL) COPYING.GPL COPYING.LGPL README $(INST_DOCS)/$(name)-$(version)) (cd src; $(MAKE) install) ( for bin in bin/* ; do \ if test -f $$bin -a -x $$bin ; then \ echo installing $$bin ... ; \ $(INSTALL_PROGRAM) $$bin $(INST_BIN) ;\ (echo "$(RM) -f $(prefix)/$$bin" >> $(TOP)/ossim-uninstall) ; \ fi ; \ done ; \ ) ( for lib in lib/* ; do \ if test -f $$lib ; then \ echo installing $$lib ... ; \ $(INSTALL) $$lib $(INST_LIB) ;\ (echo "$(RM) -f $(prefix)/$$lib" >> $(TOP)/ossim-uninstall) ; \ fi ; \ done ; \ ) ( for t in etc/templates/* ; do \ if test x$$t != "xetc/templates/CVS" ; then \ echo installing $$t ... ; \ install $$t $(sysconfdir)/ossim/templates ; \ (echo "$(RM) -f $(sysconfdir)/ossim/templates/$$t" >> $(TOP)/ossim-uninstall) ; \ fi ; \ done ; \ ) (echo "$(RM) -f $(INST_BIN)/ossim-config" > $(TOP)/ossim-uninstall) (echo "$(RM) -rf $(INC_DIR)/ossim" >> $(TOP)/ossim-uninstall) (echo "$(RM) -f $(INST_DOCS)/$(name)-$(version)/COPYING" >> $(TOP)/ossim-uninstall) (echo "$(RM) -f $(INST_DOCS)/$(name)-$(version)/COPYING" >> $(TOP)/ossim-uninstall) (echo "$(RM) -f $(INST_DOCS)/$(name)-$(version)/GPL" >> $(TOP)/ossim-uninstall) (echo "$(RM) -f $(INST_DOCS)/$(name)-$(version)/COPYING.LGPL" >> $(TOP)/ossim-uninstall) (echo "$(RM) -f $(INST_DOCS)/$(name)-$(version)/README" >> $(TOP)/ossim-uninstall) ($(INSTALL_PROGRAM) $(TOP)/ossim-uninstall $(INST_SHARE)/$(name)-$(version)) clean: (cd src; $(MAKE) clean) (cd lib; /bin/rm -f *.a) depends: (cd src; $(MAKE) depends) configure: configure.in aclocal.m4 aclocal autoconf all: default