poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make 'git status' more useful


From: Bruno Haible
Subject: make 'git status' more useful
Date: Sat, 11 Apr 2020 16:28:51 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-174-generic; KDE/5.18.0; x86_64; ; )

Hi,

After doing "git pull" and rebuilding, I had compilation errors:

../lib/.libs/libpoke.a(libpoke_la-pkl.o): In function `pkl_compile_buffer':
/media/develdata/devel/POKE/poke/lib/pkl.c:251: undefined reference to 
`rpl_printf'

These were caused by a stale left-over lib/stdio.h file that cause trouble when
gl/stdio.h was meant to be included.

Usually, 'git status' should show me such left-over files. But currently,
'git status' is not very useful before it reports a number of files after
'make distclean':

        doc/poke.info-1
        doc/poke.info-2
        lib/pkl-asm.pkc
        lib/pkl-gen.pkc
        lib/pkl-lex.c
        lib/pkl-lex.h
        lib/pkl-tab.c
        lib/pkl-tab.h
        lib/pkl-tab.output
        lib/pvm-vm.h
        lib/pvm-vm1.c
        lib/pvm-vm2.c
        po/poke.pot
        src/nodelist

Generated files that are not in the distribution tarball ought to be removed
by "make clean" (or "make distclean" or "make maintainer-clean") [1].

Generated files that are in the distribution tarball ought to listed in
.gitignore.

[1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html

I proposed the two attached patches to implement this.


2020-04-11  Bruno Haible  <address@hidden>

        Clean some generated files.
        * lib/Makefile.am: Delete pkl-tab.output during 'make mostlyclean'.
        * src/Makefile.am: Delete nodelist during 'make mostlyclean'.
        * .gitignore: Update accordingly.

2020-04-11  Bruno Haible  <address@hidden>

        Make 'git status' empty after "make distclean".
        * .gitignore: Ignore generated files that are distributed in the
        tarball.

Attachment: 0001-Clean-some-generated-files.patch
Description: Text Data

Attachment: 0002-Make-git-status-empty-after-make-distclean.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]