Unsermake problem
Anders Lund
anders at alweb.dk
Mon May 31 21:59:06 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Today we added a script to generate some syntax descriptions for PHP in
kdelibs/kate/data, and rules in Makefile.am to run it.
The rules in the Makefile.am are:
html-php.xml: $(srcdir)/html.xml $(srcdir)/generate-php.pl
$(PERL) $(srcdir)/generate-php.pl < $< > $(srcdir)/$@
css-php.xml: $(srcdir)/css.xml $(srcdir)/generate-php.pl
$(PERL) $(srcdir)/generate-php.pl < $< > $(srcdir)/$@
javascript-php.xml: $(srcdir)/javascript.xml $(srcdir)/generate-php.pl
$(PERL) $(srcdir)/generate-php.pl < $< > $(srcdir)/$@
It runs fine with automake, also with srcdir != builddir, but using unsermake
the makefile gets the location for the the files wrong for installing. They
are generated in the correct location (the src dir), but install gives me:
/bin/install -c -p -m
644 ../../../../kdelibs/kate/data/html.xml /opt/kdecvs/share/apps/katepart/syntax/html.xml
/bin/install -c -p -m
644 ../../kate/data/html-php.xml /opt/kdecvs/share/apps/katepart/syntax/html-php.xml
/bin/install: cannot stat `../../kate/data/html-php.xml': No such file or
directory
make: *** [/opt/kdecvs/share/apps/katepart/syntax/html-php.xml] Error 1
/bin/install -c -p -m
644 ../../kate/data/css-php.xml /opt/kdecvs/share/apps/katepart/syntax/css-php.xml
/bin/install: cannot stat `../../kate/data/css-php.xml': No such file or
directory
make: *** [/opt/kdecvs/share/apps/katepart/syntax/css-php.xml] Error 1
/bin/install -c -p -m
644 ../../kate/data/javascript-php.xml /opt/kdecvs/share/apps/katepart/syntax/javascript-php.xml
/bin/install: cannot stat `../../kate/data/javascript-php.xml': No such file
or directory
make: *** [/opt/kdecvs/share/apps/katepart/syntax/javascript-php.xml] Error 1
- ---
As you can see, the path for the generated files are wrong for the install.
I assume this is a issue with unsermake, since it works with automake
generated makefiles.
- -anders
- --
Document your code
Check before committing
Shoot spammers
Given the ugliness of the gmail service, I think everybody
with a democratic mind should stop using google at all.
=== Support democracy and individual freedom ===
=== Find yourself a different search service ===
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAu5yjyyMSZA8sCCYRAn87AJ43J+u3Kaeitk4YtcTe05/qGDDAIgCcCjHz
86LGs354+R9lfX2eCOtvitA=
=Ua6F
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list