summaryrefslogtreecommitdiff
path: root/src/autopoint.in
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-08-30 13:56:28 +0800
committerxhe <xw897002528@gmail.com>2017-08-30 22:18:46 +0800
commit7cf56e34dd453a996b1346589dea5e76292d2622 (patch)
treef0a378a422935ae8252d0101dc89e89915d02c22 /src/autopoint.in
parentdcc03f3f63f43deca803f1265d1d497425c2bf76 (diff)
downloadgettext-tiny-7cf56e34dd453a996b1346589dea5e76292d2622.tar.gz
[3/3]: refactoring Makefile.in.inautopoint-makefile
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.
Diffstat (limited to 'src/autopoint.in')
-rwxr-xr-xsrc/autopoint.in13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/autopoint.in b/src/autopoint.in
index bbaa9bd..9b29500 100755
--- a/src/autopoint.in
+++ b/src/autopoint.in
@@ -1,17 +1,6 @@
#!/bin/sh
m4src=@datadir@/m4
-gen_makefile() {
-cat << EOF > "$1"
-all:
-clean:
-dist:
-distclean:
-install:
-.PHONY: all clean dist distclean install
-EOF
-}
-
mkdir -p m4 intl po
for i in $m4src/*.m4 ; do
cp $i m4/
@@ -20,6 +9,6 @@ done
touch config.rpath ABOUT-NLS
for i in intl/Makefile.in po/Makefile.in.in ; do
- [ -e "$i" ] && touch "$i" || gen_makefile "$i"
+ [ -e "$i" ] || install -D -m 644 @datadir@/data/autopoint_Makefile.in "$i"
done
true