add uninstall target
This commit is contained in:
parent
22d76deac6
commit
44a5e65081
1
CHANGES
1
CHANGES
@ -1,5 +1,6 @@
|
|||||||
0.13:
|
0.13:
|
||||||
fixed several bugs in test/uudecode.c
|
fixed several bugs in test/uudecode.c
|
||||||
|
add uninstall target
|
||||||
|
|
||||||
0.12:
|
0.12:
|
||||||
add textcode api for uuencode/uudecode, base64, quoted printable,
|
add textcode api for uuencode/uudecode, base64, quoted printable,
|
||||||
|
9
Makefile
9
Makefile
@ -69,12 +69,19 @@ t: t.o libowfat.a
|
|||||||
clean:
|
clean:
|
||||||
rm -f *.o *.a *.da *.bbg *.bb core t haveip6.h haven2i.h havesl.h haveinline.h
|
rm -f *.o *.a *.da *.bbg *.bb core t haveip6.h haven2i.h havesl.h haveinline.h
|
||||||
|
|
||||||
|
INCLUDES=buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h open.h textcode.h
|
||||||
|
|
||||||
install: libowfat.a
|
install: libowfat.a
|
||||||
install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
|
install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
|
||||||
install -m 644 buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h open.h textcode.h $(INCLUDEDIR)
|
install -m 644 $(INCLUDES) $(INCLUDEDIR)
|
||||||
install -m 644 $(wildcard */*.3) $(MAN3DIR)
|
install -m 644 $(wildcard */*.3) $(MAN3DIR)
|
||||||
install -m 644 libowfat.a $(LIBDIR)
|
install -m 644 libowfat.a $(LIBDIR)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
|
||||||
|
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
|
||||||
|
rm -f $(LIBDIR)/libowfat.a
|
||||||
|
|
||||||
VERSION=libowfat-$(shell head -1 CHANGES|sed 's/://')
|
VERSION=libowfat-$(shell head -1 CHANGES|sed 's/://')
|
||||||
CURNAME=$(notdir $(shell pwd))
|
CURNAME=$(notdir $(shell pwd))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user