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

@@ -58,11 +58,11 @@ Wall:
$(CC) -c $(DEFS) -I../../include -I$(srcdir) -I$(srcdir)/../des $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(INSTALL_DATA) -m 0555 $(LIB) $(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB)
uninstall:
rm -f $(libdir)/$(LIB)
rm -f $(DESTDIR)$(libdir)/$(LIB)
TAGS: $(SOURCES)
etags $(SOURCES)
@@ -95,4 +95,4 @@ $(LIBNAME).$(SHLIBEXT): $(LIB_OBJECTS)
$(OBJECTS): ../../include/config.h
.PHONY: all install uninstall check clean mostlyclean distclean realclean
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean