Skip to contentSkip to conversation

dist files

DISCUSSION Yoshinori K. Okuji 2 participants 5 messages Mar 2, 2005 – Mar 19, 2005

lore
Share & tools
lore
#0 lore raw

Hmm, I don't know if you know, but Makefile.in records distributed files. Apparently, this list is not maintained at all. Possibly we should consider a better way to define which files should be distributed.

Okuji

#1 lore raw
Quoted 4 lines · Yoshinori K. Okuji

Hmm, I don't know if you know, but Makefile.in records distributed files. Apparently, this list is not maintained at all. Possibly we should consider a better way to define which files should be distributed.

Unfortunately I know little about building processes. I see that it was not updated and I also think automating this process would be wise. Does no one have any idea how to do this?

Thanks,
Marco

#2 lore raw
Quoted 3 lines · Marco Gerards

Unfortunately I know little about building processes. I see that it was not updated and I also think automating this process would be wise. Does no one have any idea how to do this?

As far as I know, there are three ways to do this:

1. Automake determines if a file should be distributed based on Makefile.am and some special rules (such as configure). It is difficult for us to use, because we have arch-specific makefiles (this might be feasible if I make genmk.rb to generate another piece of makefile which specifies all distributed files).

2. A combination of CVS and a small tool can generate a distribution fairly easily. I can simply export files in the CVS and regenerate some files if necessary.

3. A file called MANIFEST is used in many projects. This is basically the same as our way. The file lists all files (sometimes with wildcards).

Okuji

#3 lore raw
Quoted 2 lines · Yoshinori K. Okuji

3. A file called MANIFEST is used in many projects. This is basically the same as our way. The file lists all files (sometimes with wildcards).

I chose this way. There is now a file called DISTLIST in the top source directory. This file is automatically generated by gendistlist.sh. Since it is not easy to determine if this tool should be invoked from make, execute it manually when you add / remove files.

Okuji

#4 lore raw
Quoted 8 lines · Yoshinori K. Okuji
Quoted 2 lines · Yoshinori K. Okuji

3. A file called MANIFEST is used in many projects. This is basically the same as our way. The file lists all files (sometimes with wildcards).

I chose this way. There is now a file called DISTLIST in the top source directory. This file is automatically generated by gendistlist.sh. Since it is not easy to determine if this tool should be invoked from make, execute it manually when you add / remove files.

Sure. This sounds like a very nice solution.

Thanks,
Marco