automake
[Top][All Lists]
Advanced

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

dist_bin_SCRIPTS and implicit rules


From: Ineiev
Subject: dist_bin_SCRIPTS and implicit rules
Date: Mon, 28 Jul 2008 13:08:20 +0400

Such a silly Makefile.am
(a sample project is attached; I used automake-1.10.1):

dist_bin_SCRIPTS=src/foo
bin_PROGRAMS=bar
bar_SOURCES=src/bar.c src/foo.c
#When src/foo.c is newer than src/foo,
#GNU make applies it's implicit rule, like this:
# gcc -g -O2    ../ns/src/foo.c   -o src/foo

# Will this rule cure me?
#$(dist_bin_SCRIPTS): Makefile.am
#       touch $(srcdir)/$@

I am new to Autotools; this effect
was quite unexpected to me.

I am not sure whether the commented out rule
doesn't break the _SCRIPTS that need to be built
or something else.

Or probably can I generally run `make -r'
for automade projects?

Cheers,
   Ineiev

Attachment: ns.tar.gz
Description: GNU Zip compressed data


reply via email to

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