9 Feb 2004 jaldhar   » (Journeyer)

Using Filenames With '*' In Them In Makefiles

While packaging the latest webmin version I had an interesting time trying to figure out how to do stuff to files with names like config-*-linux. The trouble is '*' gets interpreted as a wildcard character. Normally in bash on the commandline to get a literal '*' you would just do this: config-\*-linux. But in a makefile, it gets converted to config-\\*-linux. Increasing the number of slashes was suggested but to no avail. The correct answer is $$'config-*-linux' (You have to use two dollar signs so it doesn't get interpreted as a make variable.)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!