add uninstall make-target
[skip ci]
This commit is contained in:
parent
237b49ad4a
commit
a29e9fa7c4
4
makefile
4
makefile
@ -88,6 +88,10 @@ install: $(LIBNAME)
|
||||
install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)
|
||||
install -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
|
||||
|
||||
uninstall:
|
||||
rm $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
||||
rm $(HEADERS_PUB:%=$(DESTDIR)$(INCPATH)/%)
|
||||
|
||||
test: $(LIBNAME) demo/demo.o
|
||||
$(CC) $(CFLAGS) demo/demo.o $(LIBNAME) $(LFLAGS) -o test
|
||||
|
||||
|
@ -61,6 +61,11 @@ install: $(LIBNAME)
|
||||
install -d $(DESTDIR)$(LIBPATH)/pkgconfig
|
||||
install -m 644 libtommath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
|
||||
|
||||
uninstall:
|
||||
$(LT) --mode=uninstall rm $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
||||
rm $(HEADERS_PUB:%=$(DESTDIR)$(INCPATH)/%)
|
||||
rm $(DESTDIR)$(LIBPATH)/pkgconfig/libtommath.pc
|
||||
|
||||
test: $(LIBNAME) demo/demo.o
|
||||
$(CC) $(CFLAGS) -c demo/demo.c -o demo/demo.o
|
||||
$(LT) --mode=link $(CC) $(LDFLAGS) -o test demo/demo.o $(LIBNAME)
|
||||
|
Loading…
Reference in New Issue
Block a user