]> err.no Git - sope/blob - sope-gdl1/SQLite3/fhs.make
fixed a Tiger warning
[sope] / sope-gdl1 / SQLite3 / fhs.make
1 # postprocessing
2
3 # FHS support (this is a hack and is going to be done by gstep-make!)
4
5 ifneq ($(FHS_INSTALL_ROOT),)
6
7 FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
8 FHS_DB_DIR=$(FHS_LIB_DIR)sope-$(SOPE_MAJOR_VERSION).$(SOPE_MINOR_VERSION)/dbadaptors/
9
10 fhs-db-dirs ::
11         $(MKDIRS) $(FHS_DB_DIR)
12
13 move-bundles-to-fhs :: fhs-db-dirs
14         @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_DB_DIR) .."
15         for i in $(BUNDLE_NAME); do \
16           j="$(FHS_DB_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
17           if test -d $$j; then rm -r $$j; fi; \
18           mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
19         done
20
21 move-to-fhs :: move-bundles-to-fhs
22
23 after-install :: move-to-fhs
24
25 endif