Add images directory to makefile

641 views Asked by At

I have a local folder which includes the icons I want to use at my program.The directory is /images/icons in the src directory.

When I make the tarball the directory with the images does not appear so i guess I have to include it in the makefile.If so, how can I do that?

1

There are 1 answers

0
jcoppens On

The Makefile.am in Anjuta has code in it to install images automatically:

@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
  for pixmap in $(srcdir)/pixmaps/*; do \
    if test -f $$pixmap; then \
      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
    fi \
  done \
fi

but it expects your images to be in project_root/pixmaps. If the images are there, make dist will include the images. You can either change the path to pixmaps in Makefile.am (the one in the project root), or move your images to pixmaps.