Closed rbuj closed 3 years ago
You changed a lot of more with this change and commit message doesn't match. Eg. creating desktop files. Can you please update commit body?
@rbuj Or are changes with appdata and desktop files in Makefile.am are needed for using PACKAGE_URL variable?
@raveit65 I'm writing a brief summary about the change.
@raveit65 done. If there is anything else that is not well documented enough feel free to tell me.
Test:
The
AC_INIT
macro sets thePACKAGE_URL
variable tohttps://mate-desktop.org
in configure.ac file. Next theAC_OUTPUT
creates the listed files, as follows: for instance, if there is a file calledX
inAC_OUTPUT
file list, then it copies the content ofX.in
toX
file, and replaces the output variables such as@PACKAGE_URL@
.For that reason, the
X.in
file must be inEXTRA_DIST
since it's the seed that allows to generate other files. Furthermore, If the generated file byAC_OUTPUT
still requires another transformation, such as adding the translations through$(MSGFMT)
, the last transformation may be inCLEANFILES,
and the file generated by theAC_OUTPUT
may be inDISTCLEANFILES
.Note
distclean
callsclean
target. By doing so, thedistclean
target provides a clean working directory, since it removes the files generated in configuration and build stages, avoiding the deletion of the files generated in the configuration stage by using theclean
target when cleaning the build.As a basic rule, now we can say that the data files that are treated as seeds cannot be in any of the cleanup file lists, they should be in EXTRADIST, and EXTRADIST shouldn't include any transformation.
The
AC_INIT
macro also definesPACKAGE_URL
inconfig.h
file, so the source files only need to include that file to use the definition.The
POTFILES.in
file contains the list of files for which the translations need to be extracted. These files are not generated in either the configuration or build stages.