whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#126 closed defect (fixed)

src/models/Makefile.am breaks make distcheck

Reported by: ohl Owned by: ALL
Priority: P3 Milestone:
Component: configure Version: 2.0.0beta
Severity: normal Keywords: automake
Cc:

Description

The following resonable code in src/models/Makefile.am

if !OPTIMIZATION_FOR_PARFILES
.f90.o:
	$(FCCOMPILE) -O0 -c -o $@ $<

.f90.obj:
	$(FCCOMPILE) -O0 -c -o $@ `$(CYGPATH_W) '$<'`

.f90.lo:
	$(LTFCCOMPILE) -O0 -c -o $@ $<
endif

produces the following broken code src/models/Makefile.in:

distclean-compile:
        -rm -f *.tab.c

@OPTIMIZATION_FOR_PARFILES_TRUE@.f90.o:
        $(FCCOMPILE) -c -o $@ $<

@OPTIMIZATION_FOR_PARFILES_TRUE@.f90.obj:
        $(FCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`

@OPTIMIZATION_FOR_PARFILES_TRUE@.f90.lo:
        $(LTFCCOMPILE) -c -o $@ $<

mostlyclean-libtool:
        -rm -f *.lo

because the commands for distclean-compile will be augmented by calls to the fortran compiler. Consequently make distcheck fails:

Making distclean in models
/scratch/ohl/whizard/_build_nag/whizard-2.0.0_rc1/_build/src/models
make[3]: Entering directory `/scratch/ohl/whizard/_build_nag/whizard-2.0.0_rc1/_build/src/models'
rm -rf .libs _libs
rm -f *.mod
test -z "external.Test.la" || rm -f external.Test.la
rm -f "./so_locations"
test -z "libmodels.la" || rm -f libmodels.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
rm -f *.tab.c
/opt/NAG/5.2/686/bin/nagfor -I../../src/misc -O0 -gline -f2003 -C=all -pg -c -o distclean-compile 
NAG Fortran Compiler Release 5.2(686)
Warning: No files specified
make[3]: *** [distclean-compile] Error 2
make[3]: Leaving directory `/scratch/ohl/whizard/_build_nag/whizard-2.0.0_rc1/_build/src/models'
make[2]: *** [distclean-recursive] Error 1
make[2]: Leaving directory `/scratch/ohl/whizard/_build_nag/whizard-2.0.0_rc1/_build/src'
make[1]: *** [distclean-recursive] Error 1
make[1]: Leaving directory `/scratch/ohl/whizard/_build_nag/whizard-2.0.0_rc1/_build'
make: *** [distcheck] Error 2

This appears to be a automake bug.

Change History (3)

comment:1 Changed 14 years ago by Juergen Reuter

Version: 2.0rc12.0beta

comment:2 Changed 14 years ago by kilian

Resolution: fixed
Status: newclosed

With the version of [1504], Automake should handle this correctly.

comment:3 Changed 14 years ago by Juergen Reuter

Milestone: v2.0.0final

Milestone v2.0.0final deleted

Note: See TracTickets for help on using tickets.