add DESTDIR support and .PHONY

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4572 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-03-15 05:58:31 +00:00
parent 59d3830d83
commit 6554532c43
23 changed files with 137 additions and 74 deletions

View File

@@ -45,15 +45,15 @@ Wall:
$(CC) -c $(DEFS) -I../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
@for i in $(LIB); do \
echo "$(INSTALL) -m 0555 $$i $(libdir)" ;\
$(INSTALL) -m 0555 $$i $(libdir) ; done
echo "$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i" ;\
$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i ; done
uninstall:
@for i in $(LIB); do \
echo "rm -f $(libdir)/$$i" ;\
rm -f $(libdir)/$$i ; done
echo "rm -f $(DESTDIR)$(libdir)/$$i" ;\
rm -f $(DESTDIR)$(libdir)/$$i ; done
TAGS: $(SOURCES)
etags $(SOURCES)
@@ -93,3 +93,5 @@ afslib.so: afslib.o
ld -o $@ -bM:SRE -bI:$(srcdir)/afsl.exp -bE:$(srcdir)/afslib.exp @AFS_EXTRA_LD@ afslib.o
$(OBJECTS): ../../include/config.h
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean dist