This is not how to install files with automake:

default-config/Makefile.am:

> ## Process this file with automake to create Makefile.in
> 
> configdir = @FVWM_DATADIR@/default-config
> inst_location = $(DESTDIR)@FVWM_DATADIR@/default-config
> config_DATA = config \
>             .stalonetrayrc \

stalonetraydir = $(configdir)/.stalonetrayrc

>             FvwmScript-DateTime \
>             FvwmScript-ConfirmQuit \

Remove subdirs from this Makefile.am, add them to the SUBSIRS
variable, add a Makefile.am in their directory and list all files
to be installed in a variable:

  foobardir = @FVWM_DATADIR@/default-config/<subdir>
  foobar_DATA = (list all files)

>             FvwmScript-ConfirmCopyConfig
> 
> EXTRA_DIST  = images \
>             config \
>             .stalonetrayrc \
>             FvwmScript-DateTime \
>             FvwmScript-ConfirmQuit \

Liekwise.

>             FvwmScript-ConfirmCopyConfig
> 
> install-data-hook:
>       cp -r $(srcdir)/images $(inst_location)

>       ln -sf $(inst_location)/FvwmScript-DateTime $(inst_location)/..
>       ln -sf $(inst_location)/FvwmScript-ConfirmQuit $(inst_location)/..
>       ln -sf $(inst_location)/FvwmScript-ConfirmCopyConfig $(inst_location)/..

Use "$(LN_S) -f", don't merge options.  See bin/Makefile.am for an
example how to make symlinks.

> 
> uninstall-hook:
>       rm -fr $(DESTDIR)/$(configdir)

Don't merge options, i.e. use "rm -r -f".  This command runs a
high risk of destroying user data because of the recursive delete.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt

Reply via email to