r18035: - fixed 'make clean' to remove test objects
authorAndrew Tridgell <tridge@samba.org>
Mon, 4 Sep 2006 12:39:41 +0000 (12:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:05 +0000 (14:17 -0500)
- fixed 'make install' to create target dir

should be ready to go into the build farm as a standalone build now?
(This used to be commit 5feaeaf1dc6434874c8f4c0e913a7e6c70b87309)

source4/lib/replace/Makefile.in

index 9c16448b92cd81f4f9d7ba56fec0f57be0b592d8..4d14fe5123e8268137f36ae7add41e8286e3b077 100644 (file)
@@ -16,6 +16,7 @@ OBJS = dlfcn.o getpass.o replace.o snprintf.o
 all: libreplace.a
 
 install: all
+       mkdir -p $(libdir)
        $(INSTALL) libreplace.a $(libdir)
 
 libreplace.a: $(OBJS)
@@ -36,7 +37,7 @@ testsuite: libreplace.a $(TEST_OBJS)
        @$(CC) $(CFLAGS) -c $< -o $@
 
 clean:
-       rm -f *.o *.a testsuite
+       rm -f *.o test/*.o *.a testsuite
 
 distclean: clean
        rm -f *~ */*~