summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* build: respect cflags (#58)Ariadne Conill2021-04-141-1/+1
|
* Makefile: fix install failure if path contains "m4/" string (#49)Giulio Benetti2020-01-191-1/+1
| | | | | | | | | Actually Makefile install recipe substitutes every occurence of "m4/" in file name of the target of the rule($@), in an absolute path there could more than one "m4/" occurence, so install will fail. Let's change $(subst ...) with $(patsubst ...) substituting only last occurence of "m4/" pattern. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
* Makefile: don't force static buildrofl0r2018-08-211-2/+2
| | | closes #37
* Makefile: link -liconv if necessaryrofl0r2018-07-191-2/+4
| | | | closes #33
* Makefile: move LDFLAGS into the proper positionrofl0r2018-07-161-2/+2
| | | | | if external libraries are required, they have to be added after the object files that require them.
* Revert "makefile: add LDLIBS to handle -liconv correctly"rofl0r2018-07-161-3/+2
| | | | | | This reverts commit 1a4dc39864ff80c5fb2464b16c4609593c34ae69. The commit breaks compilation on sabotage.
* makefile: add LDLIBS to handle -liconv correctlyxhe2018-07-141-2/+3
| | | | | | | | | | | | | | The previous commit was done with mingw. And it can not be compiled at first. Gcc told me he can not find libiconv even if i added -liconv into LDFLAGS. https://stackoverflow.com/questions/13249610/how-to-use-ldflags-in-makefile , and i found this article. The original position of LDFLAGS seems to only be considered at the compiling stage. But what we gonna go through is the linking stage, which makes -lxxx in LDFLAGS useless. So i added LDLIBS to the end of line. By the way, -liconv is set by default for compatibility. And mingw now works well with gettext-tiny.
* install: symlink m4 files to $(dataroot)/aclocalxhe2018-07-141-9/+13
| | | | | | | | | | | follow https://github.com/sabotage-linux/gettext-tiny/issues/27. According to @awilfox, GNU gettext will install m4 files to aclocal dir. But gettext-tiny did not. So autoreconf just stops working and complains that it can not find needed macros. Suggested by rofl0r, symlinking all m4 files into $(dataroot)/aclocal is a good idea. Save a little disk space.
* [3/3]: refactoring Makefile.in.inautopoint-makefilexhe2017-08-301-1/+2
| | | | | | | | | | | following https://github.com/sabotage-linux/gettext-tiny/issues/12 as said in the previous commit, the gnu makefile does not work. So, here, i delete all actions like updating po files by POT, refresh files...etc. I kicked all stuff out of Makefile, except building .po files and installing .mo files. The original file installation logic is kept, either, for not to damage the eco system of autotools. Issue is completely solved after these three commits.
* [1/3]: more flexible way of installing share filesxhe2017-08-301-4/+4
| | | | | | | | | | | | following https://github.com/sabotage-linux/gettext-tiny/issues/12 this is the first part of the solution the issue, to prepare for introducing Makefile.in.in in the next commit. we modify m4dir to datadir, as we will introduce Makefile.in.in, which should be copied to $datadir$/gettety-tiny. It's a better name. Also moving m4 to a subdir makes a cleaner structure and a good place to place Makefile.in.in.
* libintl: make it optional and configurablexhe2017-07-291-4/+12
| | | | | | | | | | | | | As rofl0r suggested, libintl.a now comes in two flavours, no-op or musl, or we could just disable it. no-op: gettext functions just return the input string as translation and symbols help to get past configure scripts musl: symbols as in no-op, with libintl built-in in to recent musl version Use LIBINTL=FLAVOR, FLAVOR can be NOOP(no-op), MUSL, NONE(disable)
* initial version of autopointrofl0r2016-12-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | all autoconf packages that use gnu gettext for translations require a tool called autopoint in order to run `autoreconf -i`, which is the command to generate the configure script from configure.ac. this is often needed to compile git checkouts of applications, because they usually do not have the configure scripts and the other generated files checked into their version control systems. the autopoint tool is called without parameters, and it is required to copy some m4 files into place and generate some other files. this version here was created just by observing which error messages would be thrown after running it and gradually adding functionality. it was tested on a git checkout of weechat, and later on the source tarballs of various packages like glib, and it seemed to work so far. it's very likely that in future new scenarios will show up that require additional files, but what we have right now is a good start. the m4 files were taken from gnu gettext 0.18, and they are all licensed under very liberal conditions. each file has the original copyright header. there's only one m4 file i wrote myself, which is configheader.m4, supplying a macro i couldn't otherwise find in gettext's source code.
* fix assertion error on huge string found in gnumericv0.0.2rofl0r2012-12-251-2/+3
| | | | | | | | | | | | | | | | | | the culprit is: gnumeric-1.10.17/po-functions/dz.po basically the code was wrongly checking for the end of the convert buffer, instead of the line buffer. this is no problem per se because the line buffer gets reset more often, but when the convertbuffer is bigger (like after this change) it wouldnt work correctly. i put the convert_buf functions into a separate translation unit and renamed them to escape and unescape to make it more clear what they're doing. also new: size checks for the escape functions. currently it will silently truncate the strings when the buffer runs out of space. this is sufficient for no-op style, but should be fixed at some point.
* remove superfluous Makefile rulerofl0r2012-12-251-3/+0
|
* add xgettextrofl0r2012-09-181-1/+3
|
* added msgmergerofl0r2012-09-181-4/+11
|
* rip out poparser from msgfmtrofl0r2012-09-181-4/+5
|
* Makefile: more consistent CFLAGS handlingrofl0r2012-09-181-1/+1
|
* add Makefilerofl0r2012-09-171-0/+62