| 1 |
## |
| 2 |
## Top level Makefile for ploticus and libploticus |
| 3 |
## |
| 4 |
|
| 5 |
DESTDIR= |
| 6 |
BIN =$(DESTDIR)/usr/bin |
| 7 |
LIB =$(DESTDIR)/usr/lib |
| 8 |
INC =$(DESTDIR)/usr/include |
| 9 |
|
| 10 |
all: |
| 11 |
cd src; $(MAKE); $(MAKE) libploticus-static; $(MAKE) clean; \ |
| 12 |
$(MAKE) FPIC=-fPIC libploticus-so; $(MAKE) clean; |
| 13 |
|
| 14 |
clean: |
| 15 |
(cd src; $(MAKE) distclean); |
| 16 |
(cd pltestsuite; $(MAKE) distclean); |
| 17 |
rm -f configure-stamp build-stamp |
| 18 |
rm -f pltestsuite/out |
| 19 |
|
| 20 |
install: |
| 21 |
install -d -m 755 $(BIN) |
| •22 |
install -m 755 src/ploticus $(BIN)/ploticus |
| 23 |
install -d -m 755 $(DESTDIR)/usr/share/man/man1 |
| 24 |
install -m 644 man/man1/pl.1 $(DESTDIR)/usr/share/man/man1/ploticus.1 |
| 25 |
install -d -m 755 $(LIB) |
| 26 |
install -m 644 src/libploticus.a $(LIB) |
| 27 |
install -m 644 src/libploticus.so.0.0.0 $(LIB) |
| 28 |
install -d -m 755 $(INC) |
| 29 |
install -m 644 src/libploticus.h $(INC) |