Makefile
author Dan Winship <danw@gnome.org>
Wed Feb 20 12:42:42 2008 -0500 (2008-02-20)
changeset 126 3142795705a5
parent 112 812340a13ec2
child 136 eef2b734f2cc
permissions -rw-r--r--
Fix file importing code to not generate some duplicate directories

build_file_tree() depends on the fact that the contents of a directory
are sorted immediately after it in the file list, but '.' sorts before '/'
lexicographically, so you'd actually end up with, eg:

/etc/yum
/etc/yum.conf
/etc/yum/pluginconf.d

which would cause a second entry for /etc/yum to be added to the file
list.

For now I've fixed this by make compare_filenames() do a special strcmp
by hand, manually sorting '/' before anything else.
     1 CFLAGS = -Wall -g
     2 LDLIBS = -lexpat -lz -g -lrpm -lcurl
     3 
     4 all : razor test-driver
     5 
     6 razor : razor.o yum.o main.o rpm.o types.o util.o
     7 
     8 *.o : razor.h razor-internal.h
     9 razor.o : types.h
    10 
    11 test-driver : razor.o types.o util.o test-driver.o
    12 
    13 test : test-driver
    14 	./test-driver test.xml
    15 
    16 clean :
    17 	rm -f *.o razor