varnish / libvmod-example

An example vmod for Varnish Cache
https://varnish-cache.org/vmods/
53 stars 74 forks source link

Make always build all sources. #27

Closed lkarsten closed 6 years ago

lkarsten commented 8 years ago

With current git master for vmod example, the source tree is always rebuilt when running make.

Expected: No files rebuilt since no source files have been modified between invocations.

(=3a37e) lkarsten@IMMER ~/work/libvmod-example> make
make  all-recursive
make[1]: Entering directory '/home/lkarsten/work/libvmod-example'
Making all in src
make[2]: Entering directory '/home/lkarsten/work/libvmod-example/src'
/usr/share/varnish-plus/vmodtool.py ../src/vmod_example.vcc
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I/usr/include/varnish-plus -Wall -Werror   -g -O2 -MT vmod_example.lo -MD -MP -MF .deps/vmod_example.Tpo -c -o vmod_example.lo vmod_example.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -Wall -Werror -g -O2 -MT vmod_example.lo -MD -MP -MF .deps/vmod_example.Tpo -c vmod_example.c  -fPIC -DPIC -o .libs/vmod_example.o
mv -f .deps/vmod_example.Tpo .deps/vmod_example.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -module -export-dynamic -avoid-version -shared  -o libvmod_example.la -rpath /usr/lib/varnish-plus/vmods vmod_example.lo vcc_if.lo
libtool: link: rm -fr  .libs/libvmod_example.la .libs/libvmod_example.lai .libs/libvmod_example.so
libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC  .libs/vmod_example.o .libs/vcc_if.o    -O2   -Wl,-soname -Wl,libvmod_example.so -o .libs/libvmod_example.so
libtool: link: ( cd ".libs" && rm -f "libvmod_example.la" && ln -s "../libvmod_example.la" "libvmod_example.la" )
make[2]: Leaving directory '/home/lkarsten/work/libvmod-example/src'
make[2]: Entering directory '/home/lkarsten/work/libvmod-example'
make[2]: Leaving directory '/home/lkarsten/work/libvmod-example'
make[1]: Leaving directory '/home/lkarsten/work/libvmod-example'
# Rerunning without modifying/touching any files:
(=3a37e) lkarsten@IMMER ~/work/libvmod-example> make
make  all-recursive
make[1]: Entering directory '/home/lkarsten/work/libvmod-example'
Making all in src
make[2]: Entering directory '/home/lkarsten/work/libvmod-example/src'
/usr/share/varnish-plus/vmodtool.py ../src/vmod_example.vcc
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I/usr/include/varnish-plus -Wall -Werror   -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c -o vcc_if.lo vcc_if.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -Wall -Werror -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c  -fPIC -DPIC -o .libs/vcc_if.o
mv -f .deps/vcc_if.Tpo .deps/vcc_if.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I/usr/include/varnish-plus -Wall -Werror   -g -O2 -MT vmod_example.lo -MD -MP -MF .deps/vmod_example.Tpo -c -o vmod_example.lo vmod_example.c
rst2man vmod_example.man.rst vmod_example.3
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -Wall -Werror -g -O2 -MT vmod_example.lo -MD -MP -MF .deps/vmod_example.Tpo -c vmod_example.c  -fPIC -DPIC -o .libs/vmod_example.o
mv -f .deps/vmod_example.Tpo .deps/vmod_example.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -module -export-dynamic -avoid-version -shared  -o libvmod_example.la -rpath /usr/lib/varnish-plus/vmods vmod_example.lo vcc_if.lo
libtool: link: rm -fr  .libs/libvmod_example.la .libs/libvmod_example.lai .libs/libvmod_example.so
libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC  .libs/vmod_example.o .libs/vcc_if.o    -O2   -Wl,-soname -Wl,libvmod_example.so -o .libs/libvmod_example.so
libtool: link: ( cd ".libs" && rm -f "libvmod_example.la" && ln -s "../libvmod_example.la" "libvmod_example.la" )
make[2]: Leaving directory '/home/lkarsten/work/libvmod-example/src'
make[2]: Entering directory '/home/lkarsten/work/libvmod-example'
make[2]: Leaving directory '/home/lkarsten/work/libvmod-example'
fgsch commented 8 years ago

Related to #26 (vcc being phony).

dridi commented 8 years ago

I'll have a look at this, assigning to myself.

dridi commented 6 years ago

No longer happening.