2 CFLAGS
=-I
/usr
/include/libxml2
-W
-Wall
-Os
16 lfscmd
: env.o file.o help.o lfscmd.o main.o string.o
17 $(CC
) env.o file.o help.o lfscmd.o main.o string.o
$(LDFLAGS
) -o lfscmd
$(CFLAGS
) $(LIBS
)
20 if
( test ! -d
$(PREFIX
)/bin
); then mkdir
-p
$(PREFIX
)/bin
; fi
21 if
( test ! -d
$(PREFIX
)/share
/man
/man1
); then mkdir
-p
$(PREFIX
)/share
/man
/man1
; fi
22 cp
-f lfscmd
$(PREFIX
)/bin
/lfscmd
23 cp
-f doc
/lfscmd
.1 $(PREFIX
)/share
/man
/man1
/lfscmd
.1
24 chmod a
+x
$(PREFIX
)/bin
/lfscmd
25 chmod a
+r
$(PREFIX
)/share
/man
/man1
/lfscmd
.1
33 rm -f
$(PREFIX
)/bin
/lfscmd
34 rm -f
$(PREFIX
)/share
/man
/man1
/lfscmd
.1
37 $(CC
) $(CFLAGS
) -c src
/env.c
39 $(CC
) $(CFLAGS
) -c src
/file.c
41 $(CC
) $(CFLAGS
) -c src
/help.c
42 lfscmd.o
: src
/lfscmd.c
43 $(CC
) $(CFLAGS
) -c src
/lfscmd.c
45 $(CC
) $(CFLAGS
) -c src
/main.c
46 string.o
: src
/string.c
47 $(CC
) $(CFLAGS
) -c src
/string.c