PREFIX=$(DESTDIR)/usr/share/sunappserver
BINDEST=$(DESTDIR)/usr

install:
ifneq ("$(DESTDIR)","")
	mkdir -p $(PREFIX)
	for file in `ls .`; do \
           if [ $${file} != "debian" -a \
                $${file} != "build-stamp" -a \
                $${file} != "configure-stamp" -a \
                $${file} != "Makefile" ]; then \
              case $${file} in \
                 bin) mkdir -p $(BINDEST); \
                      echo "Copying $${file} from ./$${file} to $(BINDEST)"; \
                      cp -R ./$${file} $(BINDEST);; \
                 **) echo "Copying $${file} from ./$${file} to $(PREFIX)"; \
                     cp -R ./$${file} $(PREFIX);; \
              esac \
           fi; \
        done
endif
	

debian: 

clean:
ifneq ("$(DESTDIR)","")
	rm -rf $(PREFIX)
endif
	

distclean: clean
